






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
Material Type: Project; Class: General Computer Science for Engineers; Subject: Computer/Information Sciences; University: University of Delaware; Term: Spring 2009;
Typology: Study Guides, Projects, Research
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Dr. John Cavazos Computer and Information Sciences 04/08/
Project 1 update Pseudo Code Checking if an Array is Sorted Finding a number in an Array
Simple Example : Add all numbers in array Intialize i to zero for n from 1 to end of array i = i + array(n) return value of i
Check all numbers in array if the one before is less than the one after If array(n) > array(n+1) array not sorted
function sorted = isArraySorted (array) initialize sorted to true len = length of array minus 1 for j = 1 to len if array(j) > array(j+1) sorted is false