I am trying to come up with a psuedo code for a method that searches through a two dimentional array c for an element a. I have got a slight idea about pseudo code but not very sure if i am on the right track. Can someone help please.
FindElement ( c, a )
for int i = 0 to n-1 loop
for int j = 0 to n – 1 loop
find a in c[ i - -n-1 ][ j - - n-1 ]
if c[i][j] == a
end if
else if c[i][j] != a
i = i+1
j = j+1
end if
end loop
end loop
Pseudo code
Page 1 of 11 Replies - 8629 Views - Last Post: 15 November 2007 - 06:37 AM
Replies To: Pseudo code
#2
Re: Pseudo code
Posted 15 November 2007 - 06:37 AM
These is not standard pseudo code. Someone can not say, I know pseudo code. It is just a way of writing a program's or algorithm's description that is similar to a programming languages but includes English descriptions and does not have a precise as you do with that language.
Page 1 of 1

New Topic/Question
Reply



MultiQuote



|