Algorithms & Programs

studied byStudied by 3 people
0.0(0)
Get a hint
Hint

Describe the term Algorithm

1 / 7

flashcard set

Earn XP

8 Terms

1

Describe the term Algorithm

  • A sequence of instructions or a set of rules that are followed to complete a task 

  • A sequence of unambiguous instructions 

  • A well defined procedure that allows a computer to solve a problem 

  • A set of mechanical or sequential steps that are followed in order to take some form of input 

New cards
2

Methods of Defining an Algorithm?

  1. Pseudocode 

  2. Flowcharts 

  3. Structured English 

New cards
3

What is a variable?

A named location in the Computer's memory that the programmer can use to store data whilst the program is running.

 

They can change throughout the life of the program.

New cards
4

What is a Constant?

Similar to variables in the fact they can be used for storage of data but once we run the program a constants value can not change 


Example:  pi = 3.1415 

New cards
5

What is a Recursive Function?

It's a function that calls itself within itself until a base case is reached 

New cards
6

What are the limitations of using a recursive function?

  1. You can run out of memory (stack space) due to high no. of recursive calls 

  2. Difficult to debug (dry run) if it produces incorrect results due to the difficulty of determining which recursive cell made the error 

New cards
7

What’s a Factorial ?

It's any give number that can be calculated by multiplying the numbers below it 

 

example : 

Factorial of 6 or 6! 

= 6x5x4x3x2x1 == 720

New cards
8

What’s the difference between Validation & Verification checks

Validation checks occurs before  data is committed to storage it doesn't  account for the accuracy of data

Verification occurs after data is committed to storage 

New cards

Explore top notes

note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard67 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard189 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard129 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard48 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard20 terms
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard42 terms
studied byStudied by 5 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard60 terms
studied byStudied by 3136 people
Updated ... ago
4.5 Stars(14)