Hejto.pl
GłównaDyskusjeNajnowszeSpołeczności
Hejto
/Wpisy
/Dyskusja
Bigos
Bigos
★Autorytet
w Hydepark2023-12-21T11:26:44+01:00

UWAGA!!!

Odgadłem algorytm na hasło w #diffle .

if(exist(word = random_letters(), polish_doctionary) {

diffle(word);

}

Bigos userbar

Komentarze (1)

Deykun
Deykun
★
2023-12-21T12:56:19+01:00

https://en.wikipedia.org/wiki/Bogosort

Bogosort

In computer science, bogosort (also known as permutation sort and stupid sort) is a sorting algorithm based on the generate and test paradigm. The function successively generates permutations of its input until it finds one that is sorted. It is not considered useful for sorting, but may be used for educational purposes, to contrast it with more efficient algorithms. Two versions of this algorithm exist: a deterministic version that enumerates all permutations until it hits a sorted one, and a randomized version that randomly permutes its input. An analogy for the working of the latter version is to sort a deck of cards by throwing the deck into the air, picking the cards up at random, and repeating the process until the deck is sorted. The worst-case happen with this version if the random source is of low quality and happens to make the sorted permutation unboundedly unlikely to occur. Its name is a portmanteau of the words ...

Wikipedia

Zaloguj się aby komentować

Hejto.pl to społeczność, która dzieli się historiami, artykułami i linkami z sieci. Treść tworzą nasi użytkownicy.

HEJTO © 2021-2025

Hejto

KontaktRegulaminPolityka prywatnościZasady moderacjiPoradnikSpołecznościWspierający

Social media

facebookinstagramtwitter

2025. Hejto. Wszelkie prawa zastrzeżone.