CS 477 Exam 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:51 AM on 9/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

What is true?
Np-complete problems

show up all the time

2
New cards

For today's computers, which of the following statement is true?

Many computational problems have no efficient solution methods even today

3
New cards

What is true about NP-complete problems

It is easy to check the answer but hard to find it

4
New cards

Which of the following problems can be solved by a greedy algorithm?

Minimum Spanning Tree

5
New cards

Approximation algorithm

gives an answer that is within a factor of optimal

6
New cards

To show Big-Oh using the original definition (no limits)

one has to exhibit a C and an n_0 that makes a certain inequality true.

7
New cards

What does f(n) O(g(n)) mean?

It means f grows more slowly than g or they could have the same order.

8
New cards

For f(n) (g(n)) :

the limit f(n)/g(n) goes to a constant not zero not infinity

9
New cards

What do we do with the characteristic polynomial?

We find the roots.

10
New cards

If a recurrence has a history number of three, how many initial values are needed?

t_0, t_1, t_2

11
New cards

What is the "inhomogeneous part" of a recurrence.

It is the function that remains when all terms that have a t are moved to the left side.

12
New cards

Assertion: Insertion has run time O(n) for input which is already sorted. 

This is not a contradiction. Because the lower bounds speaks to the worst case of an algorithm, and sorted input is not the worst case for insertion sort.

13
New cards

How many comparisons are necessary and sufficient to sort 4 keys?

5

14
New cards

The worst-case run time of quicksort is:

O(n^2)