LaTeX Any ideas of how to represent a list in pseudo-code in LaTex?

  • Thread starter Thread starter uwowizard
  • Start date Start date
  • Tags Tags
    Ideas Latex List
AI Thread Summary
The discussion focuses on representing list operations in pseudo-code using LaTeX's algorithmic packages. The user seeks a standard method to depict list structures and specific operations like adding and removing elements at certain positions. They have consulted existing documentation but found no relevant examples for list representation. Suggestions are requested for papers or resources that effectively illustrate such diagrams in LaTeX. The conversation emphasizes the need for clarity in presenting list data structures within algorithmic contexts.
uwowizard
Messages
14
Reaction score
0
I'm working with the algorithmic and algorithm packages in LaTeX and looking for a way to perform some operations on a list in the algorithm.. Any ideas how I can do that? Any advice is highly appreciated.

Thank you in advance.
 
Physics news on Phys.org
Can't really get what you ask about...

Do you ask how to print list structures (boxes with dots and arrows) in LaTeX?

Or maybe you are a fan of Dirty Tricks and ask how to port some Lisp program to \TeX? - if so - be more specific what you want to do.
 
I'm looking for a standard way to represent a list (data structure) in pseudo-code. I looked at the documentation of standard algorithmic packages in latex, e.g.

http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode

but could find anything about lists.

Pls, let me know if I need to be more clear.
 
In particular, I want to be able to represent the following operations

list l
l.add(l1,i) //add element l1 in the i-th position
l.remove(j) // remove an element in the j-th position
 
I am not familiar with publications about list processing, so could you give an example of any (available online) paper, where such diagrams are used and printed in a manner you want to achieve?

BTW: for many papers you may retrieve not only pdf, but also TeX source, so you may steal the solution from other author
 

Similar threads

Replies
2
Views
2K
Replies
1
Views
2K
Replies
4
Views
3K
Replies
3
Views
3K
Replies
12
Views
3K
Replies
8
Views
2K
Replies
3
Views
3K
Replies
23
Views
2K
Back
Top