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

  • Context: LaTeX 
  • Thread starter Thread starter uwowizard
  • Start date Start date
  • Tags Tags
    Ideas Latex List
Click For Summary

Discussion Overview

The discussion revolves around representing lists in pseudo-code using LaTeX, particularly focusing on operations that can be performed on lists. Participants explore the capabilities of algorithmic packages in LaTeX and seek guidance on standard representations.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant seeks advice on performing operations on a list using LaTeX's algorithmic and algorithm packages.
  • Another participant questions the clarity of the request, asking if the focus is on printing list structures or on porting Lisp programs to LaTeX.
  • A participant specifies a need for a standard way to represent lists in pseudo-code and references documentation that lacks information on lists.
  • Further, a participant details specific list operations they wish to represent, such as adding and removing elements at specified positions.
  • Another participant requests examples of papers that utilize such list representations and suggests looking at TeX sources of published papers for solutions.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and clarity regarding the original request, indicating that multiple interpretations exist. The discussion remains unresolved as participants seek more specific information and examples.

Contextual Notes

There is uncertainty regarding the specific requirements for representing lists in pseudo-code, and limitations in the documentation referenced by participants may affect the discussion.

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 ·
Replies
2
Views
2K
Replies
3
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K