Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this pseudo code or some programming language

I'm reading about graph traversal in this PDF and see some unfamiliar symbols. Is this code sample just pseudocode or is it some language I haven't seen before? If pseudocode, does it have some formal schema that will let me look up the unfamiliar symbols?

Bitmap sample here: enter image description here

like image 214
willc2 Avatar asked Dec 08 '25 22:12

willc2


1 Answers

It is a formal mathematical style of pseudocode sometimes referred to as pidgin code. Very few real languages use symbols like that, but there are some, such as APL.

There is no "glossary of symbols" per se, because every author uses his or her own flavor, but they tend to follow commonly-understood math notation.

This particular piece of code on BFS is very widely quoted. Wikipedia's BFS article has an "ASCII" translation of it.

like image 199
TypeIA Avatar answered Dec 12 '25 06:12

TypeIA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!