Queue ("khiú", "pâi-tūi") sī chi̍t khoán data kò͘-chō, kî-tiong hông sóa cháu ê chi̍t hāng goân-kiāⁿ sī siāng kū (siāng chá ka-ji̍p) ê hit hāng, ia̍h chiō sī siāng chá ji̍p--lâi-ê tāi-seng sóa--chhut-khì.

Enqueue kap dequeue ké-soeh-tô͘.

Chhah-ji̍p (insert) ê chhau-chok, tī queue it-poaⁿ sī kiò chò enqueue; thâi-tiāu (delete) ê chhau-chok hō chò dequeue. Queue ū thâu-pō͘ (head ia̍h back; āu-pêng, kū hāng hit-pêng) kap bóe-pō͘ (tail ia̍h front; chiân-pō͘, sin hāng hit-pêng), enqueue ê sî sī tùi thâu-pō͘ hit ūi chok-iōng; dequeue ê sî sī tùi bóe-pō͘ chok-iōng.

Chham-khó

siu-kái
  • Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest & Clifford Stein (2009). Introduction to Algorithms (Tē-3 pán.). The MIT Press. pp. 232–235. ISBN 9780262259460. 

Siong-koan

siu-kái