1 Replies - 8629 Views - Last Post: 15 November 2007 - 06:37 AM Rate Topic: -----

#1 demmukk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-September 07

Pseudo code

Posted 15 November 2007 - 12:26 AM

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

Is This A Good Question/Topic? 0
  • +

Replies To: Pseudo code

#2 ReggaetonKing   User is offline

  • D.I.C Head
  • member icon

Reputation: 4
  • View blog
  • Posts: 73
  • Joined: 16-November 06

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1