Question 44 The subset-sum problem is defined as follows: Given a set S of n positive integers and a positive integer W, determine whether there is […]
Question 50 For constants a ≥ 1 and b > 1, consider the following recurrence defined on the non-negative integers: Which one of the following options […]
Question 26 Which of the given options provides the increasing order of asymptotic complexity of functions f1, f2, f3 and f4? f1(n)=2n f2(n)=n3/2 f3(n)=n log2 n […]
Question 10 Match the following asymptotic notations used in the time and space analysis of algorithms-with their meanings A: O-notation B: Θ-notation C: Ω-notation I. Greater […]
Question 11 The asymptotic notation for defining the average time complexity is A Equivalence B Symmetric C Reflexive D Both Symmetric and Reflexive AlgorithmsAsymptotic-ComplexityAPPSC-2016-DL-CA Correct Answer: […]
Question 20 Assume that f(n) and g(n) are asymptotically positive. Which of the following is correct? A f(n)=O(g(n)) and g(n)=O(h(n))⇨ f(n)=ω(h(n)) B f(n)=Ω(g(n)) and g(n)=Ω(h(n))⇨ f(n)=O(h(n)) […]
Question 19 Two alternative packages A and B are available for processing a database having 10k records. Package A requires 0.0001n2 time units and package B […]
Question 24 What is the running time of the following function(specified as a function of the input value)? void Function(int n) { int i=1; int s=1; […]