Midterm content Flashcards
Algorithm:
a precise, systematic method for producing a specified result
• Algorithm: describes sequence of steps that is
Unambiguous, executable, and terminating
Rank computer memory from fastest to slowest
Registers, Cace, RAM, hard drive
Moore’s law
Memory on a chip (transistors) will doable every 18 months to two years. Important for processing speeds and price of computers.
Operating system:
special software that allows other software to run
How can you evaluate algorithms
Time, space and accuracy
simple sort
14 memory slots: 42 comparisons
Selection sort
8 memory slots: 21 comparisons
insertion sort
8 memory slots: 21 comparisons (on average), depends on how things are organized to begin with
Classifiers
an algorithm that maps the input data to a specific category - ○ derived from patterns or correlations from data
Programs:
a way of encoding algorithms in a precise way for computers to understand their instructions
High level language has:
Complier/Interpreter - takes high level language and translates it and
Assembler translates from assembly language to machine code (0 and 1s)
Assembly language
specific to computer architecture and operating system
Machine code
binary instructions that computers can respond to directly
Algorithms are made using
Sequencing, selection, iteration