COMP 3270 - Heaton - Midterm 1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

Abstract data structure

Question

refers to the set of operations it allows (eg append (add to end), get_min, remove(i), etc) sometimes also known as the interface

2
New cards

Computational Problem

Question with a correct answer

- Predicate

- Input Data

- Output

3
New cards

Algorithm

Series of steps that take an input and create an output for a computational problem

4
New cards

Data structure

Purpose: store data in a way that efficiently supports how we want to access and change that data

refer to a particular implementation of that interface which may have different run times for the operations involved

5
New cards

Sequences

a

6
New cards

Queue

a

7
New cards

Priority Queue

a

8
New cards

Sets and Maps

a

9
New cards

Array Sequence

a

10
New cards

Linked List Sqeuence

a

11
New cards

Dynamic Array Sequence (Vector)

a

12
New cards

Dynamic Array Stack

a

13
New cards

Linked List Stack

a

14
New cards

Stack

a

15
New cards

Array Queue

a

16
New cards

Linked List Queue

17
New cards

O(1)

Constant

18
New cards

O(n^2)

Quadratic

19
New cards

O(2^n)

Exponential

20
New cards

O(n^c)

Polynomial

21
New cards

O(log n)

Log

22
New cards

O(n)

Linear

23
New cards

O(n log n)

Log Linear

24
New cards

Duplicate Algorithm

knowt flashcard image
25
New cards

Binary Search

knowt flashcard image
26
New cards

Swap algorithm

knowt flashcard image
27
New cards

Selection Sort

knowt flashcard image
28
New cards

Insertion Sort

knowt flashcard image
29
New cards

Bubble Sort

knowt flashcard image
30
New cards

Merge algorithm

knowt flashcard image
31
New cards

Merge Sort

knowt flashcard image
32
New cards

Partition algorithm

knowt flashcard image
33
New cards

Quick Sort

knowt flashcard image
34
New cards

Selection Sort runtime

O(n^2)

35
New cards

Insertion Sort runtime

O(n^2)

36
New cards

Bubble Sort runtime

O(n^2)

37
New cards

Merge Sort runtime

O(n log n)

38
New cards

Quick Sort runtime

O(n log n)