Definitionپێناسە
A data structure in which the first item added is the first one taken out (FIFO), like people waiting in line at a bakery. Breadth-first search keeps its frontier in a queue.
کە تێیدا یەکەم دانە کە دەخرێتە ناوی یەکەم دانەیە کە دەردەهێنرێت (FIFO)، وەک ڕیزی خەڵک لەبەردەم نانەواخانەیەک. لە هەڵدەگرێت.
Exampleنموونە
A plain list can act as a queue with pop(0), but deque.popleft() is much faster for long queues.
ئاساییش دەتوانێت بە pop(0) وەک کار بکات، بەڵام deque.popleft() بۆ کیووی درێژ زۆر خێراترە.
from collections import deque
queue = deque(['S'])
queue.append('A')
queue.append('B')
print(queue.popleft()) # S (first in, first out)Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
ڕیز، کیووەکە، کیووەکان، کیوویەک، کیووی، کیووەکانی، کیوویەکی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Sozyar Osman (S2, p. 47) prints «کیوو» and explains it with a bread queue. The everyday ڕیز (queue, line) is kept as an alternative, but it is also the registry's word for a table row (table-row) and is needed for the rows of the maze grids, so the attested loan is preferred.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
A queue in three minutes: first in, first out, enqueue at the back, dequeue at the front, and Python's collections.deque.
لە سێ خولەکدا: FIFO (یەکەم هاتوو یەکەم دەڕوات)، enqueue لە دواوە، dequeue لە پێشەوە و collections.deque لە .
Learn more inزیاتر فێربە لە
- Depth-First and Breadth-First Searchگەڕانی قووڵایی و گەڕانی پانایی
- Solving a Maze with DFS and BFSچارەسەرکردنی لابیرینت بە DFS و BFS
- Queues and Deques: First In, First Outکیووەکان و کیووە دووسەرەکان: یەکەم هاتوو، یەکەم دەرچوو
- How Search Engines Workبزوێنەرەکانی گەڕان چۆن کار دەکەن
- The Python You Need for the AI Labsئەو Pythonـەی بۆ تاقیگەکانی ژیریی دەستکرد پێویستە
- Stacks: Last In, First Outستاکەکان: دوایین هاتوو، یەکەم دەرچوو
- Futures, async and await in DartFuture،
asyncوawaitلە Dartـدا - Removing Items, Joining and Comparing Listsلابردنی دانەکان، پێکەوەلکاندن و بەراوردکردنی لیستەکان
- Priority Queues and Heapsکیووە پێشینەییەکان و هیپەکان
- Binary Search and Hashingگەڕانی دووانی و هاشکردن
- Python Next to JavaPython لە تەنیشت Javaـەوە
- Search Problems: States, Actions, Goals and Costsکێشەکانی گەڕان: دۆخەکان، کردەوەکان، ئامانج و کۆست
- A* Searchگەڕانی A*
- Search Practice: Midterm-Style Tasksڕاهێنانی گەڕان: ئەرکی وەک تاقیکردنەوەی نیوەی وەرز
- Tuples, Sets and Dictionariesتاپڵەکان، کۆمەڵەکان و فەرهەنگەکان