What name is given to code modeling/notation?

Asked

Viewed 156 times

6

I know the question got a little weird, but here’s the thing:

It has a type of notation that is no language, but it serves as a basis to implement in some language. for example the algorithm of Dijkstra is represented like this:

enquanto Q ≠ ø
     u ← extrair-mín(Q)                     //Q ← Q - {u}
     para cada v adjacente a u
          se d[v] > d[u] + w(u, v)          //relaxe (u, v)
             então d[v] ← d[u] + w(u, v)
                   π[v] ← u
                   Q ← Q ∪ {v}

What is the name of this type of modeling?

I need to represent a code that will be implemented in several languages, by which name I should search?

3 answers

5

Pseudocode, em português.

In English, pseudocode.

3

  • I like the concept, but it doesn’t answer, my problem is very generic. I need an English template that can be implemented in Java, C#, C++, Javascript..

1


@Anislanwesley, I believe what you’re looking for is simply a pseudocode.

Several types of pseudocodes are found on the Internet, each with a characteristic syntax. When I learned to program I learned by a known as Portugol that basically tries to describe the actions with simple Portuguese.

But you can find there, various syntax of pseudocode based on some language in specific, as C, Pascal, among others.

Even, if you are working with computational mathematics for example, pseudocodes find a notation influenced by mathematical notation, containing SOMATORIOS for example to represent a loop for, for example.

Anyway, I think you can find one that meets your needs or even create your own.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.