misc/bogosort 0.4.2_3 DragonFly
Sort (or not) stdin using the bogo-sort algorithm
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- Categories
- misc
- Package size
- 16.3 KiB, 42.2 KiB installed
Description
Sort files or its standard input using the bogo-sort algorithm described in the Jargon File <http://www.catb.org/~esr/jargon/>.
A quote from the Jargon File 'bogo-sort' entry:
...The archetypical perversely awful algorithm (as opposed to
\_bubble sort\_, which is merely the generic bad algorithm).
\_Bogo-sort\_ is equivalent to repeatedly throwing a deck of cards
in the air, picking them up at random, and then testing whether
they are in order. It serves as a sort of canonical example of
awfulness. Looking at a program and seeing a dumb algorithm, one
might say "Oh, I see, this program uses \_bogo-sort\_." Esp.
appropriate for algorithms with factorial or super-exponential
running time in the average case and probabilistically infinite
worst-case running time. Compare \_bogus\_, \_brute force\_,
\_lasherism\_...
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | misc/bogosort | 0.4.2_3 |
| FreeBSD | misc/bogosort | 0.4.2_3 |
| HardenedBSD | misc/bogosort | 0.4.2_3 |
| GhostBSD | misc/bogosort | 0.4.2_3 |
Install
Binary package:
pkg install bogosort
From DPorts:
cd /usr/dports/misc/bogosort && make install clean
Dependencies
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none