{pseudocode} is a compact and informal description of a computer programming algorithm.

learn more… | top users | synonyms

1
vote
1answer
35 views

Genetic Algorithm pseudocode

Hi everyone, this is my first post, so apologise if not doing it properly. I need the following GA pseudocode (Photo) in LaTex, but couldn't do it very well. I really appreciate your help.
2
votes
0answers
100 views

How to write the signature of a method in LaTex?

I'm writing an article in LaTex about programming and I need to write the signature of a C++ method using a specific format, only the statement of the method, not the body. for example: void ...
1
vote
0answers
30 views

Automatic line break in writing pseudo-code using algorithm package

I am going to write a pseudo-code using the algorithm package. Everything is fine, however, I am not able to automatically break lines and you see what happens in the picture below: I am wondering ...
1
vote
0answers
49 views

How to mark line numbers of an algorithm with asterisk?

I'm working with IEEEtran and algorithm2e package. I have a pseudocode with numbered lines. I want to mark some of my line numbers (not the lines themselves) with an asterisk mark. How can I do that? ...
1
vote
0answers
546 views

Formatting - Algorithm

I have following pseudocode: I want to write it as an algorithm but not able to format it properly. Following is my attempt: \documentclass{article} \usepackage{algorithm,amsmath,algpseudocode} ...
1
vote
0answers
135 views

Algorithm Environment

I want to write an algorithm into my paper but it is just a pseudocode and none of the fancy if-then loops etc. Instead, I want it to look something like Algorithm 11.1 here: What environment ...
0
votes
0answers
7 views

convert this code to pseudo code in latex

Can some one please help to convert this code to pseudo code? I tried, but didn't work. if (element is HIT) { if (status is HIR) { if (is in LIRS STACK) { Delete from HIR Queue ...
0
votes
0answers
28 views

individual algorithm environment with continuous numbering with normal algorithms

i am searching an algorithm environment in Latex. Im familiar with listings, algorithm and so on. But I want to create smth that looks like this: Initial step. Do the initial step General step. Do ...
0
votes
0answers
78 views

Adding a 'break' command to algpseudocode pseudocode

I want to add a \Break command to algpseudocode, which will display the word 'break' in the same font as 'return' is displayed. I've read the algpseudocode manual, but it only seems to explain how to ...
0
votes
0answers
222 views

Including Mathematica Code, in book type document

I want to include some Mathematica code in my tex file. For that I'm using this solution. As an example: \documentclass[12pt,a4paper]{book} \usepackage{graphicx} \usepackage{bm} ...