Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged tbb-algorithms-2
0
0 votes
1
1 answer
939
939 views
Test by Bikram | Algorithms | Test 2 | Question: 30
The cost of optimal binary search tree for the identifier set $(a1, a2, a3) =$ (do, if, while) with $p(1) = 0.3, \ p(2) = 0.2, $ $p(3) = 0.15, q (0) = 0.05, q(1) = 0.15...
Bikram
939
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithm-design
data-structures
binary-search-tree
dynamic-programming
+
–
2
2 votes
1
answers
1 answer
1.2k
1.2k views
Test by Bikram | Algorithms | Test 2 | Question: 29
The given input sequence is $\{ 111, 333 , 243, 199, 234, 279, 119 \}$ and the hash table is of size $10$ with hash function $h(k) = k \mod 10$. When hash table uses quad...
Bikram
1.2k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
algorithms
hashing
quadratic-probing
+
–
2
2 votes
2
answers
2 answers
792
792 views
Test by Bikram | Algorithms | Test 2 | Question: 28
Assume Dijkstra's Algorithm is used to find the shortest paths from node G in the above graph. The total number of edges which are not included in any of the shortest pat...
Bikram
792
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
shortest-path
graph-algorithms
algorithms
+
–
1
1 vote
2
answers
2 answers
990
990 views
Test by Bikram | Algorithms | Test 2 | Question: 27
The total number of LCS (Longest Common Subsequences) of $P = abcd123$ and $Q= badc321$ that can be formed are ______.
Bikram
990
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
algorithm-design
longest-common-subsequence
dynamic-programming
+
–
0
0 votes
1
answers
1 answer
727
727 views
Test by Bikram | Algorithms | Test 2 | Question: 26
Consider the following instance of the knapsack problem :$\begin{array}{|c|c|c|c|c|c|} \hline \text{Item} & a & b & c & d & e \\ \hline \text{Benefit} & 15 & 12 & 9 & 16 ...
Bikram
727
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
algorithms
greedy-algorithms
knapsack-problem
+
–
0
0 votes
2
answers
2 answers
641
641 views
Test by Bikram | Algorithms | Test 2 | Question: 25
Let $T$ be a rooted ternary tree where each internal node of $T$ has a maximum of $3$ children. If root is at depth $0$, then maximum total number of vertices $T$ can hav...
Bikram
641
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
tree
data-structures
algorithms
+
–
0
0 votes
3
answers
3 answers
1.9k
1.9k views
Test by Bikram | Algorithms | Test 2 | Question: 24
Given $n$ number of linearly ordered distinct elements, what will be the worst case time complexity to find$p$-th smallest element $(1 \leq p \leq n)$ from these $n$ elem...
Bikram
1.9k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
time-complexity
sorting
+
–
0
0 votes
2
answers
2 answers
1.3k
1.3k views
Test by Bikram | Algorithms | Test 2 | Question: 23
Matrix multiplication is associative and MCS ( matrix chain multiplication ) uses the following matrices:$\begin{array} \text{M1} & 10^* 100 \\ M2 & 100^* 5 \\ M3 & 5^* ...
Bikram
1.3k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
matrix-chain-ordering
algorithm-design
dynamic-programming
algorithms
+
–
0
0 votes
1
answers
1 answer
540
540 views
Test by Bikram | Algorithms | Test 2 | Question: 22
Consider the following table :$\begin{array}{|c|c|c|c|c|} \hline X & A & B & C & D \\ \hline Y & 14 & 3 & 6 & 10 \\ \hline \end{array}$Here, X represents character and Y ...
Bikram
540
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
huffman-code
algorithms
encoding
data-structures
+
–
1
1 vote
1
answers
1 answer
506
506 views
Test by Bikram | Algorithms | Test 2 | Question: 21
The number of comparisons required to find the maximum and minimum element in an array $A[n]$ using Divide and Conquer method is:$(3n/2)+ 2$$(3n/2) - 2$$3n$$3n/2$
Bikram
506
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithm-design
divide-and-conquer
array
data-structures
+
–
2
2 votes
1
answers
1 answer
837
837 views
Test by Bikram | Algorithms | Test 2 | Question: 20
Consider the following Graph G: The number of minimum cost spanning trees using Kruskal's Algorithm is _________ .
Bikram
837
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
minimum-spanning-tree
kruskals-algorithm
algorithms
graph-algorithms
+
–
0
0 votes
1
answers
1 answer
760
760 views
Test by Bikram | Algorithms | Test 2 | Question: 19
A hash table of length $7$ uses open addressing with hash function $h(k) = k \text{mod }7$ and linear probing to resolve collisions.After inserting 6 values in an empty h...
Bikram
760
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
hashing
linear-probing
data-structures
+
–
0
0 votes
3
answers
3 answers
1.0k
1.0k views
Test by Bikram | Algorithms | Test 2 | Question: 18
The following elements are inserted in sequence to create an AVL tree: $31, 36, 40, 19, 14, 24, 50$What is the pre-order traversal of the created AVL tree?$36, 19, 14, 31...
Bikram
1.0k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
data-structures
binary-search-tree
algorithm-design
+
–
2
2 votes
1
answers
1 answer
897
897 views
Test by Bikram | Algorithms | Test 2 | Question: 17
Which of the following are TRUE?$n! = \theta ((n + 1)!)$$\log4 n = \theta ( \log2 n )$$\sqrt{\log n} = O(\log \log n)$(i) & (iii) only(i) & (ii) only(ii) only(i),(ii) ...
Bikram
897
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
asymptotic-notations
+
–
0
0 votes
1
answers
1 answer
942
942 views
Test by Bikram | Algorithms | Test 2 | Question: 16
Consider the following max-heap as given below : 9 / \ 6 8 / \ / \3 4 5 7The number of swaps required to convert the given max-hea...
Bikram
942
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
binary-heap
data-structures
+
–
0
0 votes
2
answers
2 answers
778
778 views
Test by Bikram | Algorithms | Test 2 | Question: 15
The length of the longest common subsequence of $L = ( 1,0,0,1,0,1,0,1 )$ and $K =( 0,1,0,1,1,0,1,1,0 )$ is __________.
Bikram
778
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
algorithm-design
dynamic-programming
data-structures
sequence-series
+
–
3
3 votes
2
answers
2 answers
958
958 views
Test by Bikram | Algorithms | Test 2 | Question: 14
Match the following:$\begin{array}{|l|l|l|l|} \hline (1) & \text{Multistage graph} & (P) & \text{Divide and conquer}\\ \hline (2) & \text{Convex hull } & (Q) & \text{Dept...
Bikram
958
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
algorithm-design
graph-algorithms
greedy-algorithms
dynamic-programming
divide-and-conquer
depth-first-search
+
–
2
2 votes
2
answers
2 answers
595
595 views
Test by Bikram | Algorithms | Test 2 | Question: 13
Which one of the following is a topological sort for the above graph?$1, 6, 2, 5, 3, 4$$4, 5, 6, 3, 2, 1$$2, 4, 5, 6, 3, 1$$6, 4, 5, 2, 1, 3$
Bikram
595
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
topological-sort
graph-algorithms
algorithm-design
+
–
1
1 vote
1
answers
1 answer
527
527 views
Test by Bikram | Algorithms | Test 2 | Question: 12
The time complexity of the function mentioned below is:void f(int k[], int n) { int i; printf("%d",n); for(i=0; i<n; i++) { printf("%d",k[i]); } printf("n"); }$O(n^2)$$O(...
Bikram
527
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
time-complexity
programming-in-c
asymptotic-notations
+
–
1
1 vote
1
answers
1 answer
521
521 views
Test by Bikram | Algorithms | Test 2 | Question: 11
Let the node P be the starting vertex for Prim's Algorithm as given in the diagram below:In order to construct the Minimum Spanning Tree, which of the following options r...
Bikram
521
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
minimum-spanning-tree
prims-algorithm
graph-algorithms
algorithms
+
–
1
1 vote
2
answers
2 answers
780
780 views
Test by Bikram | Algorithms | Test 2 | Question: 10
In Strassen's Matrix Multiplication, what is the number of additions and multiplications done to get a better complexity than the normal matrix multiplication?$7$ and $16...
Bikram
780
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
matrix
algorithm-design
+
–
1
1 vote
1
1 answer
516
516 views
Test by Bikram | Algorithms | Test 2 | Question: 9
Linked Lists are not suitable for :Binary SearchPolynomial ManipulationInsertionRadix Sort
Bikram
516
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
data-structures
linked-list
algorithms
+
–
1
1 vote
1
answers
1 answer
728
728 views
Test by Bikram | Algorithms | Test 2 | Question: 8
Assume that the splits at every level of Quick-Sort are in proportion $1-p$ to $p$, where $p (0 < p \leq 0.5 )$ is a constant. The number of elements in an array is $n$....
Bikram
728
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
quick-sort
time-complexity
sorting
+
–
0
0 votes
2
answers
2 answers
1.3k
1.3k views
Test by Bikram | Algorithms | Test 2 | Question: 6
$O(n^k)$ is complexity of the best method that finds longest Palindrome Substring in a word. For example, in the word "Atatb", the longest palindrome string is "tat". The...
Bikram
1.3k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
numerical-answers
algorithm-design
asymptotic-notations
time-complexity
strings
dynamic-programming
+
–
0
0 votes
2
2 answers
565
565 views
Test by Bikram | Algorithms | Test 2 | Question: 7
Which of the following statements is FALSE?Optimal binary search tree construction can be performed efficiently using dynamic programming.Breadth-first search cannot be u...
Bikram
565
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
data-structures
graph-algorithms
binary-tree
+
–
0
0 votes
1
answers
1 answer
1.2k
1.2k views
Test by Bikram | Algorithms | Test 2 | Question: 5
A problem called Boolean Parenthesis Matching (match all parenthesis in an expression) can be solved by:Greedy ApproachRecursionDynamic ApproachBoth [B] and [C]
Bikram
1.2k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
data-structures
recursion
dynamic-programming
+
–
0
0 votes
2
answers
2 answers
1.9k
1.9k views
Test by Bikram | Algorithms | Test 2 | Question: 4
What will be the running-time of Dijkstra's single source shortest path algorithm, if the graph $G(V,E)$ is stored in the form of an adjacency list and binary heap is use...
Bikram
1.9k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithms
graph-algorithms
shortest-path
dijkstras-algorithm
binary-heap
time-complexity
+
–
0
0 votes
3
answers
3 answers
2.7k
2.7k views
Test by Bikram | Algorithms | Test 2 | Question: 2
Find the time complexity of the functionfunction( int n) { int i=1; while( i<n) { int j=n; while( j>0) j=j/2; i=2*i; } }$O(\log n)$$O(n^2 \log n )$$O(\log 2 n)$$O( \log n...
Bikram
2.7k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithm-design
time-complexity
programming-in-c
asymptotic-notations
+
–
0
0 votes
1
answers
1 answer
1.2k
1.2k views
Test by Bikram | Algorithms | Test 2 | Question: 3
Which of the following algorithms CANNOT be designed without recursion?Tower of HanoiFibonacci SeriesTree TraversalNone of the above
Bikram
1.2k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithm-design
recursion
data-structures
+
–
1
1 vote
2
answers
2 answers
1.1k
1.1k views
Test by Bikram | Algorithms | Test 2 | Question: 1
Which of the following theorems can solve all Recurrence Relations?Mater TehoremAkra-Bazzi TheoremBoth [A] and [B]Akra-Bazzi can be applied to some cases but not for all.
Bikram
1.1k
views
asked
May 26, 2017
Algorithms
tbb-algorithms-2
algorithm-design
recurrence-relation
asymptotic-notations
+
–
To see more, click for the
full list of questions
or
popular tags
.