BSD Ports

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

SystemPortVersion
DragonFlymisc/bogosort0.4.2_3
FreeBSDmisc/bogosort0.4.2_3
HardenedBSDmisc/bogosort0.4.2_3
GhostBSDmisc/bogosort0.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

Message after installing

===>   NOTICE:

The bogosort port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing