HiveBrain v1.2.0
Get Started
← Back to all entries
patternMajor

Is there a "Standard Algorithm" language, as used in academic papers?

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
usedlanguagestandardalgorithmpapersthereacademic

Problem

In many academic papers algorithms are described. They seem to use similar "syntax".

Is there a standard for this language? If I want to describe an algorithm, would I improvise my description?

For example, note that papers in general use

a <-- b


to assign a, not a = b. But where is that standard?

Solution

No. There is no universal standard. There are some conventions that have become more popular over time, through gradual evolution.

A good starting place to look would be to look at the pseudocode notation used in a few common algorithms textbooks, pick one you like, and try to emulate it. Probably anything done in a popular and well-regarded textbook is going to be reasonable and understandable to others.

Context

StackExchange Computer Science Q#159015, answer score: 30

Revisions (0)

No revisions yet.