Global Information Lookup Global Information

Dutch national flag problem information


The Dutch national flag

The Dutch national flag problem[1] is a computational problem proposed by Edsger Dijkstra.[2] The flag of the Netherlands consists of three colors: red, white, and blue. Given balls of these three colors arranged randomly in a line (it does not matter how many balls there are), the task is to arrange them such that all balls of the same color are together and their collective color groups are in the correct order.

The solution to this problem is of interest for designing sorting algorithms; in particular, variants of the quicksort algorithm that must be robust to repeated elements may use a three-way partitioning function that groups items less than a given key (red), equal to the key (white) and greater than the key (blue). Several solutions exist that have varying performance characteristics, tailored to sorting arrays with either small or large numbers of repeated elements.[3]

  1. ^ Cite error: The named reference monash was invoked but never defined (see the help page).
  2. ^ In a chapter of his book A Discipline of Programming Prentice-Hall, 1976
  3. ^ The latter case occurs in string sorting with multi-key quicksort. Kim, Eunsang; Park, Kunsoo (2009). "Improving multikey Quicksort for sorting strings with many equal elements". Information Processing Letters. 109 (9): 454–459. doi:10.1016/j.ipl.2009.01.007.

and 28 Related for: Dutch national flag problem information

Request time (Page generated in 0.8942 seconds.)

Dutch national flag problem

Last Update:

The Dutch national flag problem is a computational problem proposed by Edsger Dijkstra. The flag of the Netherlands consists of three colors: red, white...

Word Count : 652

American flag sort

Last Update:

for large sets of strings. The name American flag sort comes by analogy with the Dutch national flag problem in the last step: efficiently partition the...

Word Count : 988

Flag of the Netherlands

Last Update:

The national flag of the Netherlands (Dutch: de Nederlandse vlag) is a horizontal tricolour of red, white, and blue. The current design originates as...

Word Count : 4054

DNF

Last Update:

the free dictionary. DNF may refer to: Dutch national flag problem, a computer science–related programming problem proposed by Edsger Dijkstra DNF (software)...

Word Count : 124

National flag

Last Update:

A national flag is a flag that represents and symbolizes a given nation. It is flown by the government of that nation, but can also be flown by its citizens...

Word Count : 4038

Quicksort

Last Update:

section above. To solve the Lomuto partition scheme problem (sometimes called the Dutch national flag problem), an alternative linear-time partition routine...

Word Count : 9985

Flag of Japan

Last Update:

The national flag of Japan is a rectangular white banner bearing a crimson-red circle at its center. This flag is officially called the Nisshōki (日章旗,...

Word Count : 10208

Flag carrier

Last Update:

A flag carrier is a transport company, such as an airline or shipping company, that, being locally registered in a given sovereign state, enjoys preferential...

Word Count : 8728

Wilhelmus

Last Update:

known just as "Wilhelmus" (Dutch: Het Wilhelmus; pronounced [ɦɛt ʋɪlˈɦɛlmʏs] ; English translation: "The William"), is the national anthem of both the Netherlands...

Word Count : 4725

Flag of Norway

Last Update:

The national flag of Norway (Bokmål: Norges flagg; Nynorsk: Noregs flagg; lit. 'Norway's flag') is red with a navy blue Scandinavian cross bordered in...

Word Count : 3648

Flag of the East India Company

Last Update:

a flag of red and white stripes (varying from nine to thirteen stripes in total), with the flag of England in the canton. The flag caused problems for...

Word Count : 1285

Rising Sun Flag

Last Update:

Sun Flag (旭日旗, Kyokujitsu-ki) is a Japanese flag that consists of a red disc and sixteen red rays emanating from the disc. Like the Japanese national flag...

Word Count : 4665

2009 attack on the Dutch royal family

Last Update:

and other members of the royal family. The attack took place on the Dutch national holiday of Koninginnedag (or Queen's Day). The driver deliberately drove...

Word Count : 2122

Jolly Roger

Last Update:

Laffite. Flag of pirates captured from the Florida Straits. Flag of Dutch pirates known as the "Bloedvlag". The "Prinsenvlag" used by Dutch pirates. The...

Word Count : 6995

Flag of Serbia and Montenegro

Last Update:

the flag of its direct predecessor state, the Socialist Federal Republic of Yugoslavia (1943–1992). It was similar to an inverted Dutch flag. The flag of...

Word Count : 1677

Dutch New Guinea

Last Update:

of that decade. The Dutch endorsed the council's selection of a new national anthem and the Morning Star as the new national flag on 1 December 1961....

Word Count : 3820

African National Congress

Last Update:

Retrieved 17 March 2024. "The Logo, Colours and Flag of the African National Congress". African National Congress. Archived from the original on 24 March...

Word Count : 9003

Colour guard

Last Update:

their comrades where. A solution to this problem was the carrying of colourful banners or other insignia. Such flags or banners either showed a personal symbol...

Word Count : 3779

National Socialist Movement in the Netherlands

Last Update:

The National Socialist Movement in the Netherlands (Dutch: Nationaal-Socialistische Beweging in Nederland, pronounced [nɑ(t)ʃoːˌnaːlsoːʃaːˈlɪstisə bəˈʋeːɣɪŋ...

Word Count : 2480

Dutch East India Company

Last Update:

(Dutch: Vereenigde Oostindische Compagnie [vərˈeːnɪɣdə oːstˈɪndisə kɔmpɑˈɲi], abbreviated as VOC, Dutch: [veː.oːˈseː]), commonly known as the Dutch East...

Word Count : 10596

Raising the Flag on Iwo Jima

Last Update:

Raising the Flag on Iwo Jima (Japanese: 硫黄島の星条旗, Hepburn: Iōtō no Seijōki, lit. 'The Stars and Stripes on Iōtō') is an iconic photograph of six United...

Word Count : 7256

Pennsylvania Dutch

Last Update:

The Pennsylvania Dutch (Pennsylvania Dutch: Pennsylvanisch Deitsche), also referred to as Pennsylvania Germans, are an ethnic group in Pennsylvania and...

Word Count : 8786

Club Brugge KV

Last Update:

Club Brugge Koninklijke Voetbalvereniging (Dutch pronunciation: [klʏˈbrʏɣə ˌkoːnɪŋkləkə ˈvudbɑlvəreːnəɣɪŋ]), known simply as Club Brugge (in English also:...

Word Count : 2903

Juliana of the Netherlands

Last Update:

The Canadian government flew the Dutch tricolour flag on parliament's Peace Tower while its carillon rang out with Dutch music at the news of Princess Margriet's...

Word Count : 4368

Sint Maarten

Last Update:

Martin, which has its own flag. The Kingdom of the Netherlands has overarching responsibility for foreign relations, defence and Dutch nationality law in the...

Word Count : 7459

Communist symbolism

Last Update:

of the Sandinistas, they adopted the flag due to the movement's anarchist roots. Orchestral arrangement Problems playing this file? See media help. The...

Word Count : 3273

Dutch East Indies

Last Update:

The Dutch East Indies, also known as the Netherlands East Indies (Dutch: Nederlands(ch)-Indië; Indonesian: Hindia Belanda), was a Dutch colony with territory...

Word Count : 15172

Dutch colonial empire

Last Update:

Dutch colonial empire (Dutch: Nederlandse koloniale rijk) comprised the overseas territories and trading posts controlled and administered by Dutch chartered...

Word Count : 11896

PDF Search Engine © AllGlobal.net