















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to problem solving, a crucial skill for both everyday life and software development. It covers various types of problems, the process of finding solutions, and problem solving tools such as algorithms, pseudo code, flowcharts, and data flow diagrams. The document also includes examples and pseudo code for linear search, as well as flowcharts for various programming constructs.
Typology: Exercises
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















steps to solve a problem
Problem solving tools It help us to design solutions to problem
Pseudo code
Characteristics of good algorithm
Flow chart symbols
FUNCTION linearSearch(list, searchTerm): FOR index FROM 0 -> length(list): IF list[index] == searchTerm THEN RETURN index ENDIF ENDLOOP RETURN - END FUNCTION
int search(int arr[], int n, int x) { int i; for (i = 0; i < n; i++) if (arr[i] == x) return i; return -1; }
Flowchart of nested if...else statement
Flowchart of for loop
Flowchart of while loop