Theory of Algorithm Assignment
Theory of Algorithm Assignment
Instruction: write true if the statement is correct and false if the statement is incorrect (5%)
14. In ________ traversal method, the root node is visited first, then the left sub tree and
finally the right sub tree.
A) In-Order B) Post-Order C)Pre-Order D. All
15. Optimal merge pattern is an example of _________ Algorithm design Approach
A) Dynamic Programming C)Greedy
B) Divide and Conquered D) Back tracking
Part III: Answer the following questions Instruction:-Read each statement carefully. Write
appropriate answer on the space provided
2. Consider the given files, x1, x2, x3, x4 x5, and x6 with 25, 31, 15, 5, 20 and 40 numbers of
elements respectively. Find the optimal two way merge pattern.