chp.1 (mrs. morton)

5.0(1)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:55 PM on 9/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

algorithm

process or set of rules to be followed or calculated to solve problems, especially by a computer

2
New cards

decomposition

breaking down a large problem into smaller, more manageable parts

3
New cards

abstraction

removing unnecessary details from a problem to allow focus on essential components

4
New cards

pseudocode

step-by-step descriptions of an algorithm written in simple english words using a code-like structure


5
New cards

why use pseudocode

  • planning before writing actual code

  • makes the logic easier to understand

  • reduces logical errors before implementation


6
New cards

differences between pseudocode and an algorithm

  • algorithms only use simple english-like words → pseudocode uses reserved keywords

  • algorithms are a sequence of steps → pseudocode is just fake code, using code-like structure

  • algorithms have strict syntax rules → pseudocode has certain rules, but less

  • algorithms can be difficult to understand and interpret → pseudocode is easy to understand and interpret


7
New cards

characteristics of a good algorithm

(CITEE)

  • clear and precisely stated steps

  • allows invalid inputs (without crashing)

  • terminates at some point, when needed

  • efficient, and in as few steps as possible

  • easy to maintain and understandable by others (for modification)


8
New cards

sorting algorithms (3 types)

  • merge: splitting and rejoining in order

  • insertion: having two lists: unordered and ordered list

  • bubble: comparing adjacent values and swapping if needed


9
New cards

searching algorithms (2 types)

linear: comparing each value, one by one

binary: compares middle value, then uses > or < to half the number of values, repeat→ MUST BE IN ASCENDING/ALPHABETICAL ORDER FIRST

10
New cards