Unit 4 (Computational thinking) Flashcards
If you want to solve a problem you must follow 5 steps
Information Ideifnicition Delvopment(epplore various alternatives, and develop solutions) Selection Implementation
Flowchart is used to:
Flowhcart is used to diagrammaticaly describe an alorigthim
Sub-procedures mean
Sub-procedures mean you
An algorithm is:
An algorithm: is a serious of instructions designed to solve a problem and achieve a certain goal.
An algorithm must have the following properties: Finitness, definiteness, input, output effectiveness
Finiteness: An algorithm must always terminate after a number of steps
Definiteness: Steps must be precisely defined
Input: quanntites which are given to it initially before algorithm begins (whats put into the alg)
Output: the result of the algorithm
An identifier:
An idenfitifer: is the name that is used by the programmer to uniquely idiefntiy a variable, an object, a sub procedure etc.
Iteration is:
Iteration: is the process of repeating a series of instructions
Condition statement:
Condition statement: prefroms different instructions depending on a boolean test
Pre-planning:
Pre planning: is the process of planning osmehting in advance
Prefechting:
Prefecthing: means getting data or instruction from memory into the cache before they are actually needed. Ex, when a program requests data that was previously prefetched, it can use the pre fetched data and continue with execution, instead of waiting for the data from RAM.
`
Gannt chart:
Gannt chart: is a type of bar chart that is used for project sceuhle and project management.
Pre-condition:
Pre condition: indicates what must be true before before the sub-procudre is called
Post-condition:
Post-condiiton: indnaites what will be true when the sub producide completes its task. Ex, when cooking a meal for dinner all the necessary ingredients should be available before cooking. This is a precondition of the algorithm cooking. Agter cooking a table is neeed to facilitate eating. This is ht epost-condition for a proper dinner.
Exception:
Exception: is an act or event that disrupts the anticipated flow of the program’s execution.
Concurrent: and Concurrent processing
Concurrent: means something that happens at the same time as something else.
: means the execution of different instructions simultaneous by mutliply processor to achieve the best performance.
Abstract thinking:
Abstract thinking: means reflecting on events, ideas, attributes and relationships in a manner that hies all unnecessary details of specific objects.