Computational thinking Flashcards
what is computational thinking
a problem solving technique
- takes a complex problem
- understand it
- develop possible solutions that can be presented in a way that a computer or a human or both can understand
what is abstraction
focusing on important information only
ignoring irrelevant detail like your dad
what is Decomposition
breaking down a complex problem into smaller more manageable parts. like trying to eat a large cake by cutting it into slices so it fits in your mouth easier
what is pattern recognition
looking for similarities among and within problems
what is algorithmic thinking
algorithm and algorithmic thinking is the process of developing step by step solutions to a problem
what are the basic building blocks for designing algorithms
- Sequence - the specific order in which instructions are performed
- Selection - allows us to include more than one path through the algorithm
- iteration - allows algorithms to be simplified by stating that certain steps repeat until told otherwise
what are the two main ways to represent algorithms
pseudocode - (not a programming language) simple way of describing a set of instructions
flowchart - a diagram that shows a process made up of boxes representing steps , decisions, inputs and outputs
how are the different elements of pseudocode usually written
instructions are written in uppercase
variables are written in lowercase
messages in sentence case
in pseudocode INPUT asks a question
OUTPUT prints a message on the screen
what are the different types of search
linear - also known as serial searching. this searches for keywords in sequence (one by one) until a match is found
binary - divides data in half at each step until a match is found. this method only works if the data has been pre-sorted
what are different types of sorting
bubble - compares two sets of data and swaps the order if required. can take a long time to perform as it can take several passes to process one set of data
bucket - separates data into buckets
empty buckets are set up and filled with the relevant data. each bucket is sorted the data is then put back into a list