Algorithm design and problem solving

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 24

flashcard set

Earn XP

Description and Tags

25 Terms

1

What is the program development life cycle?

Analysis, Design, Coding, Testing and maintenance

New cards
2

What is the purpose of the analysis stage in the program development lifecycle?

To clearly define the problem and create a requirements specification.

New cards
3

What is abstraction in algorithm design?

Abstraction involves keeping the key elements required for the solution and discarding unnecessary details.

New cards
4

What does decomposition mean in problem-solving?

Decomposition breaks down a complex problem into smaller, more manageable parts.

New cards
5

What is the output of a successful linear search when looking for a name that exists in a list?

The name found and its position in the list.

New cards
6

What is the bubble sort algorithm used for?

To sort a list of items by repeatedly comparing adjacent elements and swapping them if they are in the wrong order until the entire list is sorted.

New cards
7

What is the difference between validation and verification in data handling?

Validation ensures that only reasonable data is accepted, while verification checks that data has not changed during entry.

New cards
8

What is pseudocode?

A method of describing an algorithm using simple English-like terms, not bound by strict syntax rules.

New cards
9

How do you keep a running total of values in pseudocode?

By initializing a total variable and incrementing it within a loop as values are processed.

New cards
10

What type of loop structure is used for a known number of iterations in pseudocode?

FOR...TO...NEXT loop.

New cards
11

In pseudocode, how do you represent an INPUT statement?

INPUT variable_name.

New cards
12

What are normal, abnormal, and boundary data in test scenarios?

Normal data is expected input, abnormal data is unexpected or erroneous input, and boundary data tests the limits of acceptable values.

New cards
13

What is the structure of a flowchart?

A diagram that represents the steps of an algorithm using various symbols for actions, decisions, and the flow of control.

New cards
14

What do validation checks aim to prevent?

They aim to prevent unreasonable or incorrect data from being accepted into a system.

New cards
15

What is a trace table used for?

To document the changes in variables and outputs during a dry run of an algorithm.

New cards
16

What is the key principle of algorithm design?

Efficiency in terms of time and space complexity.

New cards
17

What is a greedy algorithm?

An algorithm that makes the best choice at each step, aiming for a global optimum.

New cards
18

What are the two main types of algorithms?

Iterative and recursive algorithms.

New cards
19

What does big O notation represent?

An upper bound on the time or space complexity of an algorithm.

New cards
20

What is recursion in programming?

A method where a function calls itself in order to solve a problem.

New cards
21

What is the difference between a linear search and a binary search?

Linear search checks each element one by one, while binary search divides the list in half each time.

New cards
22

What is dynamic programming?

A method for solving complex problems by breaking them down into simpler subproblems.

New cards
23

What is an algorithm's runtime complexity?

A measure of the time taken by an algorithm to run, as a function of the length of the input.

New cards
24

What role does debugging play in algorithm design?

Debugging is used to identify and fix errors to ensure the algorithm works correctly.

New cards
25

What is an algorithmic flow?

The sequence in which the steps of an algorithm are executed.

New cards

Explore top notes

note Note
studied byStudied by 15 people
844 days ago
5.0(1)
note Note
studied byStudied by 34 people
872 days ago
5.0(2)
note Note
studied byStudied by 10 people
861 days ago
5.0(2)
note Note
studied byStudied by 1 person
771 days ago
5.0(1)
note Note
studied byStudied by 769 people
1006 days ago
5.0(2)
note Note
studied byStudied by 54 people
784 days ago
4.0(2)
note Note
studied byStudied by 31 people
120 days ago
5.0(1)
note Note
studied byStudied by 10832 people
662 days ago
4.7(47)

Explore top flashcards

flashcards Flashcard (50)
studied byStudied by 9 people
736 days ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 5 people
875 days ago
5.0(1)
flashcards Flashcard (66)
studied byStudied by 4 people
446 days ago
5.0(1)
flashcards Flashcard (33)
studied byStudied by 14 people
357 days ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 9 people
793 days ago
4.0(1)
flashcards Flashcard (71)
studied byStudied by 7 people
807 days ago
5.0(1)
flashcards Flashcard (68)
studied byStudied by 8 people
1 day ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 252 people
705 days ago
5.0(11)
robot