logo

Crowdly

Browser

Add to Chrome

Questions Bank (1399019 total)

Consider the following undirected graph:

Image failed to load

If we perform Breadth-First Search (BFS) traversal starting from node 3, how many of the following traversal(s) is/are possible? 

3 → 2 → 4 → 6 → 7 → 1 → 8 → 5

3 → 4 → 2 → 6 → 7 → 8 → 1 → 5

3 → 7 →  4 → 6 → 2 → 5 → 1 → 8

3 → 2 → 6 → 1 → 4 → 7 → 8 → 5

3 → 2 → 8 → 1 → 6 → 5 → 4 → 7

3 → 4 → 6 → 2 → 8 → 1 → 5 → 7

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

Consider the following partially sorted array after a few steps of insertion sort: [2, 5, 9, 4, 15, 3].

How many comparisons will insertion sort perform when inserting the element 4 into its correct position in the array during the next step of the algorithm?

View this question

Which of the following statements about quicksort is TRUE?

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

Image failed to load

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

0%
0%
0%
0%
0%
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
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