Snippyst
HomeSnippetsNew SnippetLogin
Snippyst

Share and discover Typst snippets with the community

Resources

  • Browse Snippets
  • Create Snippet
  • Database Dump
  • Typst Website
  • Source Code

About

  • About
  • Contact
  • Imprint

Legal

  • Privacy Policy
  • Terms of Service

Snippyst is not affiliated with Typst

← Back to snippets

Algorithm: SelectionSort

This Typst code illustrates the Selection Sort algorithm (SelectionSortA)), which iteratively selects the smallest element from the unsorted portion of an array and places it in order. The algorithm is written using a clean, custom syntax that defines simplified for and if constructs (new_for_loop and new_if_statement) without the begin and end blocks. The layout is rendered through the algorithmic package for structured algorithm formatting.

Created by: Vivi-17
Last updated: 11/11/2025
Versions:?
0.14.0
Tags:
computer scienceprogrammingalgorithm
Packages:
preview/algorithmic@1.0.6
Preview
100%
Algorithm: SelectionSort
Code
Loading...

Comments

Please log in to post comments.

Code
Loading...

Algorithm: SelectionSort

This Typst code illustrates the Selection Sort algorithm (SelectionSortA)), which iteratively selects the smallest element from the unsorted portion of an array and places it in order. The algorithm is written using a clean, custom syntax that defines simplified for and if constructs (new_for_loop and new_if_statement) without the begin and end blocks. The layout is rendered through the algorithmic package for structured algorithm formatting.

Created by: Vivi-17
Last updated: 11/11/2025
Versions:?
0.14.0
Tags:
computer scienceprogrammingalgorithm
Packages:
preview/algorithmic@1.0.6
Preview
100%
Algorithm: SelectionSort

Comments

Please log in to post comments.