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
Sequencing
Instructions in a specific order, programs will run in this order
Selection
allows algorithm to select with instructions to execute depending on conditions
Iteration
allows algorithm to repeat instructions - loops
How are word files stored?
Not in ASCII representation, the files are zipped
Bug
error or flaw in software that makes it produce wrong or unexpected results
Colours for computer images
Red, green, blue
what happens to colour as intensities increase
gets lighter
Lossless compression of bitmaps
Preserves data; Run-length encoding - collapse runs of identical colours; □ Indexed color - build colour palette identify colour within the pallet instead of RGB
Loses compression
Modify areas with similar colour to the same colour - image does not look the exact same - detectable loss of clarity