GATE CSE Divide and Conquer – Algorithms Practice Test | Set 1

Questions 56-60 of 65

0% completed (0/65 answered)
Your score 0/65 0 answered
Correct 0 Incorrect 0 Unanswered 65 Accuracy 0%

Question 56

NAT · Numerical Answer 1 mark

How many scalar multiplications are required to compute $x^16$ using Divide and Conquer fast exponentiation?

Answers for question 56

Question 57

NAT · Numerical Answer 2 mark

How many scalar multiplications are required to compute $x^15$ using Divide and Conquer fast exponentiation ($x^15$ = x * ($x^7$)^2)?

Answers for question 57

Question 58

NAT · Numerical Answer 1 mark

Two sorted arrays A of size 5 and B of size 5 are merged. What is the WORST-CASE number of comparisons required during the merge step?

Answers for question 58

Question 59

NAT · Numerical Answer 2 mark

In the best-case execution of Quick Sort on an array of size $n = 7 (where every pivot splits$ the array into equal halves), what is the exact total number of comparisons made during partitioning?

Answers for question 59

Question 60

NAT · Numerical Answer 1 mark

In the worst-case execution of Quick Sort on an array of size $n = 5 (pivot always picks$ the extreme element), how many total comparisons are made?

Answers for question 60
Scroll to Top