Comp

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

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

30 Terms

1
New cards

What is an intractable problem

When the time complexity of the program that solves the problem grows so fast that it becomes impractical for large inputs

2
New cards

Complexity of 4n³+3nlog2n+273

n³

3
New cards

Bubble sort time complexity?

O(n²)

4
New cards

Time complexity of a binary search?

O(log n)

5
New cards

Time complexity of merge sort?

O(n log n)

6
New cards

Lowest time complexity?

Constant

7
New cards

Longest (worst) time complexity

Factorial

8
New cards

Big O notation measures?

How well it scales (steps) given larger data sets to act upon

9
New cards

To turn a step formula into big O notation?

Remove any constants that n is multiplied by

10
New cards

Constant complexity?

O(1)

11
New cards

Logarithmic complexity?

O(log n)

12
New cards

Linear complexity?

O(n)

13
New cards

Polynomial complexity

O(n²) or O(n³)

14
New cards

Exponential complexity?

O(2^n)

15
New cards

Factorial complexity?

O(n!)

16
New cards

Decomposition

Breaking down a problem into smaller problems

17
New cards

Abstraction

Ignore unnecessary details

18
New cards

Divide and conquer?

Break down a problem, solve smaller problems, combine solutions to solve full problem

19
New cards

Problem recognition is the process of?

Identifying the nature and parameters of the problem

20
New cards

Visualisation in computer science?

Presenting data in an easy to grasp form with physical / mental images

21
New cards

Pipelining?

Processor begins to execute the next instruction before the current instruction has been completed

22
New cards

Data mining

The process of looking for general trends in large sets of data.

23
New cards

List vs Array

Array must have predefined length that cannot be exceeded, list does not

24
New cards

Data in a list is stored in a ____ fasion

Linear

25
New cards

Stacks are

LIFO or FILO

26
New cards

In a stack what is used to keep track of the top of the stack

A pointer variable

27
New cards

Adding to a stack is called

Pushing (push)

28
New cards

What happens when data in a stack is popped?

Data isnt removed from memory, pointer decreases, data overwritten when pushing

29
New cards

Checking the top value of a stack is called

Peeking (peek)

30
New cards

Encapsulation is

Having private values only readable through methods in classes