Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 (1 point) The minimum possible time complexity for a comparison based sorting algorithm and a random input array is O(n logn) Question 1

Question 1 (1 point)

image text in transcribed

The minimum possible time complexity for a comparison based sorting algorithm and a random input array is O(n logn)

Question 1 options:

1) True
2) False

Save

Question 2 (1 point)

image text in transcribed

The ______ algorithm works like a selection sort but accomplishes this task efficiently by using a data structure that is a special type of binary tree

Question 2 options:

Save

Question 3 (1 point)

image text in transcribed

Heap sort is a comparison based sorting algorithm

Question 3 options:

1) True
2) False

Save

Question 4 (1 point)

image text in transcribed

______ dorting algorithms maintain the relative order of records with equal keys.

Question 4 options:

Save

Question 5 (1 point)

image text in transcribed

Which of these algorithms has the fewest number of swap operations (in terms of n)?

Question 5 options:

1)

Heap sort

2)

Selection sort

3)

Insertion sort

4)

Merge Sort

5)

Bubble Sort

Save

Question 6 (1 point)

image text in transcribed

The minimum possible time complexity for a comparison based sorting algorithm and a random input array is O(n)

Question 6 options:

1) True
2) False

Save

Question 7 (1 point)

image text in transcribed

A ______ sort examines the data only by comparing the two elements with a comparison operator.

Question 7 options:

Save

Question 8 (1 point)

image text in transcribed

A Stack is used when data is transferred asynchronously between two processes.

Question 8 options:

1) True
2) False

Save

Question 9 (1 point)

image text in transcribed

What is the output of the following function with the input "( ( ) ) ( )" function g(s) { var a = s.split(""); var b = []; for (var i = 0; i 0) b.pop();} } return b.length; }

Question 9 options:

Save

Question 10 (1 point)

image text in transcribed

Given the following 2 functions - what is the value of calling fb(5,2)? function fa(x, y){ if (y == 0) return 0; return (x + fa(x, y-1)); } function fb(x, y) { if (y == 0) return 1; return fa(x, fb(x, y-1)); }

Question 10 options:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

Students also viewed these Databases questions

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago