Unit 5 - Algorithms & Procedural Abstraction

studied byStudied by 28 people
5.0(1)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 22

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

23 Terms

1

arguments

specify the values of the parameters when a procedure is called.

New cards
2

binary search

a search algorithm that repeatedly divides a sorted list to narrow in on the searched-for item

New cards
3

brute force

solve by trial and error; trying every possible option

New cards
4

decidable problems

problems in which an algorithm can be constructed to answer 'yes' or 'no' for all inputs (e.g., 'is the number even?').

New cards
5

decision problem

a problem that has a yes or no answer

New cards
6

distributed computing

a computational model in which multiple networked computers are used to run a program

New cards
7

efficiency

how well an algorithm uses time and memory/space resources, CPU and RAM.

New cards
8

heuristic algorithm

finds an approximate solution for a hard problem; helpful for finding a solution in a reasonable amount of time

New cards
9

instance of a problem

includes specific input. For example, sorting is a problem, and sorting the list (2,3,1,7) is an instance of the problem.

New cards
10

intractable problems

practically impossible to solve in a

New cards
11

linear or sequential search

an algorithm that checks ever element in a list from the start to the end of the list to find an item.

New cards
12

more efficient

this usually means it runs faster or uses less space.

New cards
13

optimization problem

the goal of finding the best solution among many

New cards
14

parallel computing

a computational model where a problem or program is broken into multiple smaller sequential computing operations some of which are performed simultaneously in parallel. This is usually on one computer with multiple processors, but it could also use multiple computers

New cards
15

parameters

are input variables for a procedure.

New cards
16

reasonable time

polynomial time

New cards
17

sequential computing

a computational model in which operations are performed in order, one at a time on one processor or computer

New cards
18

sorting algorithm

puts a list into alphabetic or numeric order.

New cards
19

speedup

For a parallel solution, this is measured in the time it took to complete the task sequentially divided by the time it took to complete the task when done in parallel

New cards
20

The Halting Problem

The undecidable problem of determining whether a computer program will produce an answer at some point or loop forever on a given input

New cards
21

The Traveling Salesman Problem

Given a list of cities and the distances between them find the shortest path visiting each city once and returning to the start.

New cards
22

undecidable problems

have no algorithm that can be constructed that always leads to a correct yes-or-no answer

New cards
23

unreasonable time

exponential time

New cards

Explore top notes

note Note
studied byStudied by 3 people
677 days ago
5.0(1)
note Note
studied byStudied by 9 people
877 days ago
5.0(1)
note Note
studied byStudied by 304 people
270 days ago
5.0(1)
note Note
studied byStudied by 2 people
13 days ago
5.0(1)
note Note
studied byStudied by 40 people
748 days ago
5.0(3)
note Note
studied byStudied by 4 people
738 days ago
5.0(1)
note Note
studied byStudied by 136 people
670 days ago
5.0(4)
note Note
studied byStudied by 671 people
269 days ago
5.0(2)

Explore top flashcards

flashcards Flashcard (24)
studied byStudied by 6 people
178 days ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 7 people
710 days ago
5.0(1)
flashcards Flashcard (119)
studied byStudied by 12 people
329 days ago
4.0(1)
flashcards Flashcard (39)
studied byStudied by 5 people
801 days ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 5 people
40 days ago
4.0(1)
flashcards Flashcard (64)
studied byStudied by 17 people
423 days ago
5.0(1)
flashcards Flashcard (98)
studied byStudied by 5 people
182 days ago
5.0(1)
flashcards Flashcard (52)
studied byStudied by 4536 people
669 days ago
4.4(38)
robot