Chapter 1 Flashcards
Define:
Computer Science [Misconception]
Misconceptions of computer science
Computer science is:
- The study of computers
- The study of how to write computer programs
- The study of building or designing computers.
Define:
Computer Science
Computer science is the study of algorithms, including:
- Their formal and mathematical properties
- Their hardware realizations
- Their linguistic realizations
- Their applications
Define:
Algorithm
Step-by-step method for accomplishing some task
What operations are used to construct algorithms?
- Sequential Operations
- Conditional Operations
- Iterative Operations
Why are formal algorithms in computer science important?
If we can specify an algorithm to solve a problem, then we can automate its solution.
Define:
Computing Agent
- Machine, robot, person, or thing carrying out the steps of the algorithm.
- OR, abstract concept representing any object capable of understanding and executing our instructions
Describe the structure of an algorithm.
Well-ordered collection of unambiguous and effectively computable operations that, when executed, produces a result and halts in a finite amount of time.
Give examples of ambiguous statements.
- Go back and do it again (Do what again?)
- Start over (From where?)
- Skip ahead (To where?)
Describe an unambiguous operation.
Can be understood and carried out directly by the computing agent without further simplification or explanation.
Also called primitive operation.
It is not enough for an operation to be understandable. What else must an operation be?
It must also be doable (effectively computable) by the computing agent.
What properties must an algorithm have?
A result must be produced after the execution of a finite number of operations.
Should have a way to deal with problems
- Correct answers may not exist for a given set of input
Why are infinite loops named so?
infinite loops run forever; there is no termination.
How have computers revolutionized the twentieth and twenty-first centuries?
The “computer revolution” has enabled us to implement algorithms that mechanize and automate the drudgery of repetitive mental tasks.
What was John Napier’s contribution to mechanical computations?
John Napier invented lagorithms as a way to simplify difficult mathematical computations.
What was Blaise Pascal’s contribution to mechanical computations?
Blaise pascal designed and built one of the first mechanical calculators (named the Pascaline).