Section 1 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is computational thinking?

A

thinking process to solve a problem, so you can formulate a sort solution through a computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define Decomposition and Identify the Advantages

A

Breaking down a complex into smaller parts
-Adv:
-easier problems are to solve
-can be used in other programs
-different people work on different parts(faster)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define Abstraction

A

Is when you take out unnecessary details and only using necessary details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define Algorithm

A

A specific sequence of steps or set of instructions for a computer to follow in order to complete a task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A Flowchart

A

Useful tools to develop a solution to a problem.

-They have symbols such as:
START, END (terminal)
input,output(parallelogram)
A flow line leading to each symbol and part
Decision(diamond)
Process(rectangle)
Subroutine(rectangle with little lines cut off on each end)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Pseudo Code

A

Not an actual programming language but it is a mixture or Python and English
Useful for developing algorithms in a programming style construct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Trace Tables

A

Is a technique used to show how values of variables change during the execution of a program and how it is run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the efficiency of an algorithm depended on?

A

How fast the program will run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Types of algorithms

A

Linear/Binary Search
Merge/Bubble Sort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Linear Search

A

Starting from the beginning of data, checking each piece to see if it is the part we are trying to find

Adv: Doesnt require data in order
Work on any type of storage device

Disadv: Efficient for smaller programs
Inefficient for larger programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Binary Search

A

Where you calculate the mid-point of the data set check to see if item is found
if item found is lower than mid-point then repeat on left half of set
If item is greater than mid-point repeat on right side of data set
Repeat until item is found or there are no checks to do
Adv:
More efficient than linear search on average
Disadv:
Does require data set to be in order of a key field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Merge Sort

A

Fast two-stage sort where a list is constantly divided in half until it becomes one list in order.
Adv:Uses divide and conquer method
-Efficient method
-creates two or more sub-problems solving them individually
-combines solution to solve bigger program
-Works well for large data sets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bubble sort

A

Repeatedly going through list swapping adjacent elements if they are in the wrong order
Adv: Sorts unordered lists
-Popular choice for small data sets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly