Select all that hold true about Bloom Filters:
Select one or more:
A. Bloom Filter has a predictable false positive rate. (Incorrect choices are penalized)
B. The total storage required for a Bloom Filter is fixed to be mm bits, and this won't increase regardless of the number of values stored.
C. Each search operation can be processed in the order
of O(n×k)O(n×k) by a Bloom Filter with kk hash functions
that already added nn values.
D. Each search or insert operation only requires O(k)O(k) operations by a Bloom Filter with kk hash functions and the cost does not depend on either the number of bits used by the Bloom Filter or nn, the number of values already added.
E. While the size of the bit array used by the Bloom Filter is constant, it may need to be quite large to reduce the false positive rate.
F. The Bloom Filter supports the following operations: add/insert the element, search the element, and remove the element.
G. While risking false positives, Bloom Filters have a strong space advantage over other data structures for representing sets, such as self-balancing binary search trees, tries, has tables, simple arrays or linked lists.
H. The Bloom Filter also stores the data items themselves that could be retrieved in O(k)O(k) time
In: Computer Science
35. Which of these is an open source operating system?
A.Open Office
B.Windows 10
C.Firefox
D.Linux
E.iOS
36.What happens when the tables are not normalized?
A.Nothing is affected.
B.The performance of querying tables is enhanced.
C.Taking a back-up of data becomes easy.
D.There is a data integrity problem.
E.Less number of records are loaded in tables.
In: Computer Science
Write an assembly code in MIPS program that can read 3 numbers from the user and print the following: a. The summation b. The average c. The minimum d. The maximum e. Print the values between the minimum and maximum f. Write comments to explain each line in your code -look at Fibonacci code- (no comments mean zero for the assignment )
use MARS MIPS .
In: Computer Science
In: Computer Science
In: Computer Science
Using implicit Intents, you are to write a complete Android application, using menus or BottomNavigationView to
1. Allow the user to send SMS messages to multiple users at the
same time.
2. Allow the user to send E-mail to multiple users including CC and
BCC
3. Allow the user to Locate any specific place on Google Map by
either
specifying a detailed information about a location or by specifying Latitude and longitude coordinates
4. Take a picture.
Impress me lots lots lots with this application.
Your are free to add whatever to need or wish.
Enjoy!
i need code for application
In: Computer Science
Re-write this method using iteration ONLY
JAVA
class Main {
public static void merge(int arr[], int l, int m, int r)
{
int n1 = m - l + 1;
int n2 = r-m;
int left[] = new int[n1];
int right[] = new int[n2];
for (int i = 0; i < n1; ++i)
left[i] = arr[l + i];
for (int j = 0; j < n2; ++j)
right[j] = arr[m + 1 + j];
int i=0; //left
int j=0; // right
int k=l; // main
while( i<n1 && j<n2){
if(left[i]<=right[j]){
arr[k] = left[i];
i++;
}
else{
arr[k] = right[j];
j++;
}
k++;
}
while(i<n1){
arr[k] = left[i];
i++;
k++;
}
while(j<n2){
arr[k] = right[j];
j++;
k++;
}
}
static void sort(int arr[], int l, int r) {
if(l>=r){
return;
}
if(l<r){
int m = (l+r)/2;
//call the left part divide
sort(arr, l, m);
//call the right to divide
sort(arr, m+1, r);
//merge left and right
merge(arr, l,m,r);
}
}
static void printArray(int arr[])
{
int n = arr.length;
for (int i = 0; i < n; ++i)
System.out.print(arr[i] + " ");
System.out.println();
}
// Driver method
public static void main(String args[])
{ // 2 3.
int arr[] = { 5,7,6,3 , 2,4,1 };
//main array = 1,2,3,4,5, 6, 7
// left 1,3,6,7
// right 2,4,5
// arr = 1,3,6,7,2,4,5
System.out.println("Given Array");
printArray(arr);
sort(arr, 0, arr.length - 1);
System.out.println("\nSorted array");
printArray(arr);
}
}
In: Computer Science
If I want to show an exception in JAVA GUI that checks if the date format is correct or the date doesn't exist, and if no input is put in how do I do that. For example if the date format should be 01-11-2020, and user inputs 11/01/2020 inside the jTextField it will show an error exception message that format is wrong, and if the user inputs an invalid date, it will print that the date is invlaid, and if the user puts no value inside the text box, it willl print an exception message that there needs to be a value. Please help.
In: Computer Science
Design the following GUI by using swing components:
Can you think of changing the Hi positions in an horizontal line every two seconds? Write a program that will allow you to change the sentence position horizontally for every 2 seconds. That is, after another 2 seconds, the Hi position should be changed to the following:
This is JAVA please.
the program is the word HI that automatically scrolls accros the screen until the end and then comes back on the left the next line down. and keeps scrolling like that..
Hi
this question I will cancel because I dont need it now Thanks for your response. I will be posting the actual question in about 20 minutes
In: Computer Science
******Please don't use handwriting and i need unique answer ... Thank you
Q3:
Consider the following relation:
Student-Dept = (Student-ID, Course, SportActivity, Dept-Name, Building)
Having following multivalued dependencies:
F ={ Student-ID ®® Course
Student-ID ®® SportsActivity
Dept-Name ®® Building }
Explain in your own words why the Student-Dept relation is not in 4NF. Then, convert the Student-Dept relation in 4NF. Also, provide the justification for each step you perform during normalization (4NF). Note: The SportActivity here means any sport a student is participating in. For example, a student with ID = 123 can participate in soccer and badminton.
Q4:
In your own word, explain why do designers use Denormalization? What is the limitation of using Denormalization? Name and explain a better alternative approach than Denormalization.
In: Computer Science
******Please don't use handwriting and i need unique answer ... Thank you
Q3:
Consider the following relation:
Student-Dept = (Student-ID, Course, SportActivity, Dept-Name, Building)
Having following multivalued dependencies:
F ={ Student-ID ®® Course
Student-ID ®® SportsActivity
Dept-Name ®® Building }
Explain in your own words why the Student-Dept relation is not in 4NF. Then, convert the Student-Dept relation in 4NF. Also, provide the justification for each step you perform during normalization (4NF). Note: The SportActivity here means any sport a student is participating in. For example, a student with ID = 123 can participate in soccer and badminton.
Q4:
In your own word, explain why do designers use Denormalization? What is the limitation of using Denormalization? Name and explain a better alternative approach than Denormalization.
In: Computer Science
Write this in java please. I use Eclipse
Write the following two functions. main doesnt need to be filled up.
Function 1:
Write a function called howMany that takes two arguments: an array of integers called arr, and an integer called iTarget. The function should return an integer result. Inside the function write a loop to go through the array and count the number of elements in the array that have the same value as iTarget. At the end it should return the count as the function return value.
Function 2:
Write a function called endsIn that takes two arguments: a String and a character. The function should return true if the string ends in that character or else return false. (Only if the ending character of the string is the character passed in as an argument.)
You sell the book “JAVA for Fools”. Write a program that has you enter a years worth of monthly sales (in terms of money). Create an array of string objects initialized to the month strings. The program should use a loop to prompt you by month from this created array of months and storing the input data (sales numbers for each month) in an array of double. Then the program should find the sum of the array contents and report the total sales for the year.
The Kingdom of Mars, where the unit of currency is the Rock, has the following income tax code:
First 3,000 Rocks: 0% tax
Next 5,000 Rocks: 5% tax
Next 10,000 Rocks: 10% tax
Rocks after 18,000: 15% tax
For example, someone earning 30,000 Rocks would owe (3,000 × 0.00 + 5,000 × 0.05 + 10,000 × 0.10 + 12,000 × 0.15, or) 3,050 Rocks. Write a JAVA program that inputs incomes and calculates the tax owed in the Kingdom of Mars in Rocks.
In: Computer Science
1. Write comments on each line of the uploaded Java file.
2. Add two more controls to the Java file. These controls are listed below.
JTextField
JRadioButton
3. Excecute your program and upload the following.
1. Image showing you have added the controls
2. Your updated Java files showing your comments and your added code for above two controls.
---------------------------------------------------------------------------------------------------------------------------------
package swing;
import javax.swing.*;
public class SwingInheritance extends JFrame
{
private static final long serialVersionUID = 1L;
SwingInheritance()
{
JTextField userName = new
JTextField();
//userName.setBounds(x, y, width,
height);
userName.setBounds(80,100,100,
40);
userName.setText("Hello");
JLabel lblText = new
JLabel();
lblText.setBounds(80,150,300,
40);
lblText.setText("You Entered: " +
userName.getText());
JButton button=new
JButton("click"); //create button
button.setBounds(80,200,100,
40);
JButton close = new
JButton("Close");
close.setBounds(80,250,100,
40);
close.addActionListener(e
->
{
dispose();
});
//add to JFrame
add(button);
add(close);
add(userName);
add(lblText);
//set frame properties
setSize(400,500);
setLayout(null);
setVisible(true);
} public static void main(String[] args)
{
new SwingInheritance();
}
}
In: Computer Science
c programming
|
If (x>=0) x =x +1; Else if (x>=1) x = x+2; |
If ( x>=0) x = x+1; if (x>= 1) x=x+2; |
In: Computer Science
Week 4 Assignment: What’s in a Number?
Directions: You are to write a C++ program that meets the instruction requirements below.
Deliverables:
Program Instructions:
To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number meaningful, companies might use more than seven letters. For example, 225-5466 can be displayed as CALL HOME, which uses eight letters. Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits. If the user enters more than seven letters, then process only the first seven letters. Also output the – (hyphen) after the third digit. Allow the user to use both uppercase and lowercase letters as well as spaces between words. Moreover, your program should process as many telephone numbers as the user wants.
In: Computer Science