LaTeX forum ⇒ Math & Science"Sentences" in Algorithms

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Posts: 36
Joined: Fri Nov 09, 2018 12:03 pm

"Sentences" in Algorithms

Postby user22741 » Sun Aug 09, 2020 7:51 pm

for my master thesis I have the following problem.
I have algorithms, which are formulated in "mathematical language".
But i also have "algorithms" if you want to call it like that, that consists of orders. Some algorithms are a lot easier to understand if it is written in sentences and not in a few-word-pseudocode .
A little example (doesn't make sence, I know):
1. Sort all rectangles by size
2. Compare the rectangles by their overlapping area and delete, if overlapping area bigger then threshold, delete the smaller one (some sentences are longer then this one)
3. Decrease threshold
4. Repeat from step 2 until only one rectangle remaining
5. Return the rectangle

My supervisor says that it is okay, but it should look like an algorithm (surrounding box, line numbering and entry in algorithm directory). Have you any advice to make these two types somehow consistent?
I could use itemize wirh the framed package, but it wouldn't occur in algorithm directory...
I could use e.g. algorithmic-package, but that would probably not look good with sentences.

Thank you for any help

Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 2 guests