logo

Crowdly

Browser

Add to Chrome

Questions Bank (1278148 total)

What is the primary difference between a queue used in BFS and a stack used in DFS?

0%
0%
0%
0%
0%
View this question

  • f ( n ) = O (g ( n )) implies  f ( n ) = Ω (g ( n )) 

  • f ( n ) = Θ (g ( n )) implies f ( n ) = O (g ( n )) and  f( n ) = Ω (g ( n ))

  • f ( n ) = Ω (g ( n )) implies f ( n ) = O (g ( n ))

  • f ( n ) = O (g ( n )) implies f ( n ) = Θ (g ( n ))

  • f ( n ) = Θ (g ( n )) implies f ( n ) = O (g ( n )) but not f( n ) = Ω (g ( n ))

How many statement(s) shown above is/are correct? 

View this question

Consider a double hashing scheme in which the primary hash function is:

h1(k) = k mod  13  

and the secondary hash function is:

h2(k) = 1+(k mod  5)

Assume that the table size is 13.

Find the address returned by probe 2 in the probe sequence for the key value k=20. Assume that the probe sequence begins at probe 0.

View this question

Image failed to load

What is the running time of the above pseudocode in Θ notation?

0%
0%
0%
0%
0%
View this question

Suppose you inserted the keys 1, 3, 4, 7, 12, 14, 16, 17, 30, 39 (exactly in this order) into a hash table of size 13 using the hash function:

h(x)=(3x+5) mod  13 also insert key 27 and 43 after that

using chaining for collision resolution.

According to the discussion in our lectures, which of the following represents a complete linked list as it appears in the resulting hash table (with the leftmost element as the head)?

0%
0%
0%
0%
0%
0%
View this question
Welche der folgenden Aussagen über die Reihenschaltung von Widerständen ist richtig?
0%
0%
0%
0%
View this question

Implement the Boolean function

form a truth table, implement it using an 8-to-1 multiplexer, and choose the correct answer.

View this question

For the circuit shown below (implemented using a 2-to-4 line decoder with enable and an OR gate), find the expression for the output function and implement it using 2-input NOR gates and choose the right answer.

Decoder problem

View this question

Perform the following binary subtraction:

11001 - 10111

What is the correct result of the subtraction?

View this question

For the function given below, use the K-Map to find the optimal sum of expressions of products and choose the best answer.

View this question