November 24, 2009

pseudocode

Last modified: Monday, March 10, 1997 

An outline of a program, written in a form that can easily be converted into real programming statements. For example, the pseudocode for a bubble sort routine might be written:

while not at end of list
compare adjacent elements
if second is greater than first
switch them
get next two elements
if elements were switched
repeat for entire list

Pseudocode cannot be compiled nor executed, and there are no real formatting or syntax rules. It is simply one step - an important one - in producing the final code. The benefit of pseudocode is that it enables the programmer to concentrate on the algorithms without worrying about all the syntactic details of a particular programming language. In fact, you can write pseudocode without even knowing what programming language you will use for the final implementation.

 
Related Categories

Programming Languages

Related Terms

algorithm

bubble sort

code

program

Books
pseudocode Products


Shop by Top Models:
Richard F. Gilberg and Behrouz A. Forouzan - Data Structures: A Pseudocode Approach With C++
3 store offers from $37 - $129

Richard E. Neapolitan et al - Foundations of Algorithms: Using C++ Pseudocode Books
2 store offers from $99 - $209

Richard Neapolitan and Kumarass Naimipour - Foundations of Algorithms Using Java Pseudocode
2 store offers from $81 - $99

Security Solutions