Design and analysis of algorithms multiple choice questions with answers

Design and analysis of algorithms multiple choice questions with answers pdf for the preparation of BCA, MCA & other IT examinations.

Design and Analysis of Algorithms is a crucial concept for Computer Science students. Having a deep understanding of this topic is essential for excelling in any software engineering or computing-related field.

This article provides you with multiple choice questions (MCQs) on the topic of Design and Analysis of Algorithms, along with answers to help you understand the concepts better.

Design and analysis of algorithms multiple choice questions with answers

Design and analysis of algorithms MCQs with answers

1. Each of the cities is connected to another city by a road a complete ___ is obtained.
Ans. Decrease-by-one

2. The worst-case efficiency of the brute force algorithm is ___.
Ans. ө(n2)

3. The searching requires ___ comparisons to in the worst case when the array is sorted first.
Ans. [log2 n] +1

4. Gaussian elimination is an algorithm for solving systems of ___ equations.
Ans. Linear

5. In Gaussian elimination we make the ___ coefficient matrix zero.
Ans. Lower triangular

6. Gaussian elimination can be used to find the ___ of a matrix.
Ans. Rank

7. An AVL tree is a ___ tree.
Ans. Binary search

8. The ___ is the mirror image of the RL-rotation.
Ans. LR-rotation

9. The two nodes of 2-3 tree are ___ and ___.
Ans. 2-node, 3-node

10. ___ heap construction algorithm is less efficient than its counterpart.
Ans. Top-down

11. A heap can be defined as ___ with keys assigned to its nodes.
Ans. Binary trees

12. The time efficiency of heapsort is ___ in both worst and average cases.
Ans. O(n log n)

13. Greatest common divisor can be computed easily by ___.
Ans. Euclid’s algorithm

14. The problem of counting graph’s paths can be solved with an algorithm for an appropriate power of its ___.
Ans. Adjacent matrix

16. Input enhancement is based on ___ the instance.
Ans. Preprocessing

17. The cities are represented by ___ and the roads between them are shown as edges.
Ans. Subset

18. Collision occurs when a hash function maps two or more keys to the ___.
Ans. Same hash value

19. When the interval between probes is computed by another hash function it is ___.
Ans. Double hashing

20. As the ___ increases the height of the tree decreases thus speeding access.
Ans. Branching factor

21. Access time increases slowly as the number of records ___.
Ans. Increases

22. The insertions in a B-Tree start from a ___.
Ans. Leaf node

23. Sorting is an example of input enhancement that achieves ___.
Ans. Time efficiency

24. Input enhancement is to ___ the input pattern.
Ans. Preprocess

25. In Horspool’s algorithm, the characters from the pattern are matched ___.
Ans. Right to left

26. The two heuristics in the Boyre-Moore algorithm are ___ and ___.
Ans. Good suffix and bad character shift

27. Each slot of a hash table is often called a ___.
Ans. Bucket

28. The information which is used to place the elements at proper positions is the accumulated sum of frequencies which is called ___.
Ans. Distribution

29. The ___ and ___ are the two approaches to dynamic programming.
Ans. Top-down, bottom-up

30. ___ is a technique to store answers to sub-problems in a table.
Ans. Memoization

31. The ___ algorithm is similar to the dynamic approach.
Ans. Divide and conquer

32. ___, a mathematician, invented the Principle of Optimality.
Ans. Richard Ernest Bellman

33. All optimization problems tend to minimize cost, time and maximizing ___.
Ans. Profits

34. ___are node-based data structures used in many system programming applications for managing dynamic sets.
Ans. Binary search trees

35. The Insertion, deletion and search operations of a binary search tree has an average-case complexity of ___.
Ans. O(log n)

36. The time taken to perform operations on a binary search tree is directly proportional to the ___ of the tree.
Ans. Height

37. The ___ expresses the problem using its sub-instances.
Ans. Recurrence relation

38. ___ is an NP-hard optimization problem.
Ans. Bounded Knapsack problem

39. The Knapsack problem minimizes the total ___ and maximizes the total value.
Ans. Weight

40. The goal of using ___ is to solve only the subproblems which are necessary.
Ans. Memory functions

41. Memory functions use a dynamic programming technique called ___ in order to reduce the inefficiency of recursion that might occur.
Ans. Memoization

42. Memory functions method solves the problem using ___ approach.
Ans. Top-down

43. To carry out an insertion sort, begin at the ___ most element of the array.
Ans. Left

44. The asymptotic running time when we first run to calculate the nth Fibonacci number is ___.
Ans. O(n)

45. To compute the nth Fibonacci number we followed the ___ dynamic approach.
Ans. Bottom-up

46. DFS uses the ___ technique.
Ans. Backtracking

47. Theoretically, the travelling salesman problem can always be solved by specifying all ___ Hamiltonian circuits.
Ans. Combinatorial

48. Binomial coefficients are a study of ___.
Ans. Combinatorics

49. Both Warshall’s and Floyd’s algorithms have the run time as ___.
Ans. θ(n3)

50. Warshall’s algorithm is used to solve ___ problems.
Ans. Transitive closure

51. Floyd’s algorithm is used to solve ___ problems.
Ans. Shortest path

52. The ___ is greedy in the sense that at each iteration it approximates the residual possible by a single function.
Ans. Pure greedy algorithm

53. A greedy strategy usually progresses in a ___ fashion.
Ans. Top-down

54. The ___ is obtained by selecting the adjacent vertices of already selected vertices.
Ans. Minimum spanning tree

55. Each ___ generated by prim’s algorithm is a part of some other minimum spanning tree.
Ans. Sub-tree

56. The greedy strategy in prim’s algorithm is greedy since the tree is added with an edge that contributes the ___ amount possible to the tree’s weight.
Ans. Minimum

57. In Kruskal’s algorithm if the graph is not connected, then the algorithm yields a___.
Ans. Minimum spanning forest

58. The Union-Find data structure is helpful for managing ___ which is vital for Kruskal’s algorithm.
Ans. Equivalence classes

59. Correctness of Kruskal’s algorithm can be proved by saying that the constructed spanning tree is of ___.
Ans. Minimal weight

60. Dijkstra’s algorithm solves the single-source ___ problem for a tree.
Ans. Shortest path

61. The algorithm finds the path with the lowest cost between the ___ vertex and every other vertex.
Ans. Originating

62. The time complexity of Dijkstra’s algorithm can be improved for ___ graphs.
Ans. Sparse

63. Huffman codes are digital ___ codes.
Ans. Data compression

64. The Huffman Encoding scheme falls in the category of ___.
Ans. Variable-length encoding

65. Static Huffman coding is done with the help of ___ tables.
Ans. Statistical symbol frequency

66. Principle of ___ is defined as a basic dynamic programming principle that helps us to view problems as a sequence of subproblems.
Ans. Optimality

67. The choices made in a greedy algorithm cannot depend on ___ choices.
Ans. Future

68. ___ means calculating the minimum amount of work required to solve the problem.
Ans. Lower – bound

69. Trivial lower bound is obtained by the count of the input data that the algorithm reads and the output it produces.
Ans. True

70. ___ method defines the lower bound of an algorithm based on the number of comparisons the algorithm makes.
Ans. Information-theoretic

71. We can implement Backtracking by constructing the ___.
Ans. State-space tree

72. Backtracking, in the ___ case, may have to generate all possible candidates in a problem state that is growing exponentially.
Ans. Worst

73. The n-Queens problem, the ___ circuit and the Subset-Sum problem are some examples of problems that can be solved by Backtracking.
Ans. Hamiltonian

74. ___ organizes details of all candidate solutions and discards large subsets of fruitless candidate solutions.
Ans. Branch and Bound

75. A ___ is a solution that satisfies all the constraints of a problem.
Ans. Decreases

Test Your IQ on Design and Analysis of Algorithms MCQs

0
Created on By Sofia Islam

Analysis & Design of Algorithm Quiz

At Eguardian India, we understand the importance of understanding the fundamentals of algorithm design and analysis. To help students get a better grasp of the concepts, we have created an Analysis and Design of an Algorithm Quiz.

This quiz will test your knowledge of algorithm design and analysis, and help you gain a better understanding of the topic. So, why wait? Take the quiz now and find out how well you know your algorithms!

1 / 25

A process is a ___ of activities actually being carried out executed, to solve a problem.

2 / 25

The symbol ¬ is used for ___

3 / 25

If n is ___ we set both the minimum and maximum to the value of the first element, and then we process the rest of the elements in pairs.

4 / 25

The key at reach node is greater than or equal to the key at its ___.

5 / 25

___ is a method of expressing algorithms by a collection of geometric shapes with imbedded descriptions of algorithmic steps.

6 / 25

While proving a theorem, if an unrequired lemma is proved, we may ignore it. The only loss is the loss of efforts in proving the lemma. Such a problem is called ___.

7 / 25

A problem is ___ if it is NP and for which no polynomial time deterministic TM solution is known so far.

8 / 25

The size of a problem is measured in terms of the ___.

9 / 25

Halting problem is ___.

10 / 25

___ may consist of various numbers of loops, nested or in sequence.

11 / 25

___ is an abstract entity constituted of mathematical objects like sets and a function.

12 / 25

___ model is the corresponding grammatical model that matches turing machines in computational power.

13 / 25

When two keys HASH to the same slot, we call the situation as ___

14 / 25

In a ___ the previous pointer of the head of the list points to the tail, and the next pointer of the tail of the list points to the head.

15 / 25

Every member of any language is said to be a ___.

16 / 25

A minimum spanning tree of a weighted connected graph is its ___ with the smallest weight

17 / 25

Algorithms based on Greedy technique are used for solving ___.

18 / 25

___ is a bottom up approach for solving problem

19 / 25

___ is conceptually a top down approach for solving problems.

20 / 25

A terminal node from which there is no legal move is a ___ position.

21 / 25

___ is a variant of a nim game and it is played with matches.

22 / 25

A ___ is a collection of Binomial trees.

23 / 25

All leaves have the same depth, which is the tree’s ___.

24 / 25

The insert operation on a stack is often called ___.

25 / 25

A stack is an ordered list in which all insertions and deletions are made at one end, called the___.

Your score is

The average score is 0%

0%

FAQs

Q1: What is an algorithm?

Ans: An algorithm is a set of instructions used to solve a problem or complete a task. It is a step-by-step process that takes an input, performs certain operations on it, and produces an output.

Algorithms are used in many areas of computer science, including search engines, image processing, machine learning, and artificial intelligence.

Q2: How do algorithms work?

Ans: Algorithms are a set of instructions that tell a computer how to perform a task. They are made up of a sequence of steps, which can include calculations, comparisons, and other operations.

The inputs for an algorithm can be data or user-defined parameters, and the output is usually the result of the algorithm’s execution. Algorithms are used in many areas such as machine learning, data analysis, and artificial intelligence.

Q3: What are the benefits of using algorithms?

Ans: Algorithms provide a number of benefits. They allow for efficient problem solving, help reduce manual effort and human error, automate repetitive tasks, and enable scalability.

Algorithms can also be used to identify patterns in data, make predictions and recommendations, and increase the accuracy of decisions.

Q4: What are the different types of algorithms?

Ans: Algorithms can be broadly classified into four types: Search algorithms, Sort algorithms, Path-finding algorithms, and Randomized algorithms. Search algorithms are used to locate specific data or items in a collection.

Sort algorithms arrange elements in a certain order. Path-finding algorithms determine the shortest path between two points. Randomized algorithms use randomness to solve a problem.

Conclusion

Design and analysis of algorithms is a complex yet fascinating subject. With the multiple choice questions and answers provided in this article, you can now confidently answer questions on algorithms in exams or interviews.

It is important to remember that deep understanding and knowledge of the topic is also essential for success. Therefore, it is recommended to practice solving algorithm problems as much as possible before attempting an exam or interview.

You may also like Analysis and Design of Algorithm MCQs Model Test Paper – I

Click here to watch the audio-video format of these MCQs

Share on Social Media

2 thoughts on “Design and analysis of algorithms multiple choice questions with answers”

  1. Usefսl informɑtion. Lucky mе I found yօur weƄ site by chance,
    and I’m stunned why this twiѕt of fate didn’t took place in advаnce!
    I bookmarked it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top