















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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