<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://wiki.mathnt.net/index.php?action=history&amp;feed=atom&amp;title=%ED%81%90</id>
	<title>큐 - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mathnt.net/index.php?action=history&amp;feed=atom&amp;title=%ED%81%90"/>
	<link rel="alternate" type="text/html" href="https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;action=history"/>
	<updated>2026-04-05T03:17:28Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;diff=51536&amp;oldid=prev</id>
		<title>2021년 2월 17일 (수) 08:46에 Pythagoras0님의 편집</title>
		<link rel="alternate" type="text/html" href="https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;diff=51536&amp;oldid=prev"/>
		<updated>2021-02-17T08:46:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2021년 2월 17일 (수) 08:46 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l135&quot; &gt;135번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;135번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 메타데이터 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==메타데이터==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===위키데이터===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===위키데이터===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ID :  [https://www.wikidata.org/wiki/Q220543 Q220543]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ID :  [https://www.wikidata.org/wiki/Q220543 Q220543]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Spacy 패턴 목록===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [{&amp;#039;LEMMA&amp;#039;: &amp;#039;queue&amp;#039;}]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [{&amp;#039;LEMMA&amp;#039;: &amp;#039;drain&amp;#039;}]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pythagoras0</name></author>
	</entry>
	<entry>
		<id>https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;diff=47335&amp;oldid=prev</id>
		<title>Pythagoras0: /* 메타데이터 */ 새 문단</title>
		<link rel="alternate" type="text/html" href="https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;diff=47335&amp;oldid=prev"/>
		<updated>2020-12-26T13:03:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;메타데이터: &lt;/span&gt; 새 문단&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020년 12월 26일 (토) 13:03 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l134&quot; &gt;134번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;134번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===소스===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===소스===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== 메타데이터 ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===위키데이터===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* ID :  [https://www.wikidata.org/wiki/Q220543 Q220543]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pythagoras0</name></author>
	</entry>
	<entry>
		<id>https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;diff=45908&amp;oldid=prev</id>
		<title>Pythagoras0: /* 노트 */ 새 문단</title>
		<link rel="alternate" type="text/html" href="https://wiki.mathnt.net/index.php?title=%ED%81%90&amp;diff=45908&amp;oldid=prev"/>
		<updated>2020-12-16T16:52:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;노트: &lt;/span&gt; 새 문단&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;새 문서&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 노트 ==&lt;br /&gt;
&lt;br /&gt;
* However, if there is a data structure that isn’t available natively but heavily used in different implementation is the queue.&amp;lt;ref name=&amp;quot;ref_5ff0&amp;quot;&amp;gt;[https://benoitpasquier.com/data-structure-implement-queue-swift/ Data Structure - How to implement a Queue in Swift]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* A Queue is renown data structure in computer science to execute operation in a linear order.&amp;lt;ref name=&amp;quot;ref_5ff0&amp;quot; /&amp;gt;&lt;br /&gt;
* The first inserted element would be the first treated, therefor the first one to be removed from the queue.&amp;lt;ref name=&amp;quot;ref_5ff0&amp;quot; /&amp;gt;&lt;br /&gt;
* In Swift, a Queue would be represented as a wrapper around an array.&amp;lt;ref name=&amp;quot;ref_5ff0&amp;quot; /&amp;gt;&lt;br /&gt;
* Linear list of elements in which deletion is done at front side and insertion at rear side is called Queue.&amp;lt;ref name=&amp;quot;ref_47b3&amp;quot;&amp;gt;[https://www.sanfoundry.com/data-structure-questions-answers-queue-operations/ Queues Questions and Answers]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Queue follows FIFO approach.&amp;lt;ref name=&amp;quot;ref_47b3&amp;quot; /&amp;gt;&lt;br /&gt;
* In queue, we will follow first in first out principle for insertion and deletion of elements.&amp;lt;ref name=&amp;quot;ref_47b3&amp;quot; /&amp;gt;&lt;br /&gt;
* When Rear = MAX_SIZE – 1, there will be no space left for the elements to be added in queue.&amp;lt;ref name=&amp;quot;ref_47b3&amp;quot; /&amp;gt;&lt;br /&gt;
* This means in the queue, one end (REAR) is always used to enqueue and the other end (FRONT) is used to dequeue.&amp;lt;ref name=&amp;quot;ref_64b5&amp;quot;&amp;gt;[https://www.educba.com/queue-in-data-structure/ Queue in Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The queue can be created using below 2 data structures.&amp;lt;ref name=&amp;quot;ref_64b5&amp;quot; /&amp;gt;&lt;br /&gt;
* Sometimes the number of elements in the queue is not specified in the start thus a linked list is used to represent a queue of elements.&amp;lt;ref name=&amp;quot;ref_64b5&amp;quot; /&amp;gt;&lt;br /&gt;
* Insertion in a queue occurs at the REAR end of the queue.&amp;lt;ref name=&amp;quot;ref_64b5&amp;quot; /&amp;gt;&lt;br /&gt;
* In the world of algorithms you won’t make it far without a clear understanding of how the queue data structure works.&amp;lt;ref name=&amp;quot;ref_52bf&amp;quot;&amp;gt;[https://www.crondose.com/2016/09/understanding-queue-data-structure/ Understanding the Queue Data Structure – a Guide for Developers]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Even though a number of languages, including Ruby and Scala, have a Queue class, typically queues are considered abstract data structures.&amp;lt;ref name=&amp;quot;ref_52bf&amp;quot; /&amp;gt;&lt;br /&gt;
* Running the program returns Springer because he was the first one we added to the batting_order queue.&amp;lt;ref name=&amp;quot;ref_52bf&amp;quot; /&amp;gt;&lt;br /&gt;
* We can use the same functions to implement a Queue.&amp;lt;ref name=&amp;quot;ref_a968&amp;quot;&amp;gt;[https://stackabuse.com/stacks-and-queues-in-python/ Stacks and Queues in Python]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Stacks and queues are simple data structures that allow us to store and retrieve data sequentially.&amp;lt;ref name=&amp;quot;ref_a968&amp;quot; /&amp;gt;&lt;br /&gt;
* In Python, we can implement stacks and queues just by using the built-in List data structure.&amp;lt;ref name=&amp;quot;ref_a968&amp;quot; /&amp;gt;&lt;br /&gt;
* Python also has the deque library which can efficiently provide stack and queue operations in one object.&amp;lt;ref name=&amp;quot;ref_a968&amp;quot; /&amp;gt;&lt;br /&gt;
* A queue is a collection of objects that supports fast first-in, first-out (FIFO) semantics for inserts and deletes.&amp;lt;ref name=&amp;quot;ref_0d68&amp;quot;&amp;gt;[https://dbader.org/blog/queues-in-python Queues in Python – dbader.org]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* New additions to the line are made to the back of the queue as new people enter the conference venue and “queue up” to receive their badges.&amp;lt;ref name=&amp;quot;ref_0d68&amp;quot; /&amp;gt;&lt;br /&gt;
* While the items are in the queue, a solid metal pipe, you can’t get at them.&amp;lt;ref name=&amp;quot;ref_0d68&amp;quot; /&amp;gt;&lt;br /&gt;
* Performance-wise, a proper queue implementation is expected to take O(1) time for insert and delete operations.&amp;lt;ref name=&amp;quot;ref_0d68&amp;quot; /&amp;gt;&lt;br /&gt;
* Queue is also known as first in first out (FIFO) data structure.&amp;lt;ref name=&amp;quot;ref_a8e6&amp;quot;&amp;gt;[https://www.ques10.com/p/34997/what-are-different-types-of-queues/ What are different types of queues?]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In a normal Queue, we can insert elements until queue becomes full.&amp;lt;ref name=&amp;quot;ref_a8e6&amp;quot; /&amp;gt;&lt;br /&gt;
* But once queue becomes full, we cannot insert the next element even if there is a space in front of queue.&amp;lt;ref name=&amp;quot;ref_a8e6&amp;quot; /&amp;gt;&lt;br /&gt;
* Enqueue means inserting an element in the queue.&amp;lt;ref name=&amp;quot;ref_50f8&amp;quot;&amp;gt;[https://afteracademy.com/blog/queue-and-its-basic-operations Queue and its basic operations]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In a normal queue at a ticket counter, where does a new person go and stand to become a part of the queue?&amp;lt;ref name=&amp;quot;ref_50f8&amp;quot; /&amp;gt;&lt;br /&gt;
* Dequeue means removing an element from the queue.&amp;lt;ref name=&amp;quot;ref_50f8&amp;quot; /&amp;gt;&lt;br /&gt;
* Since queue follows the FIFO principle we need to remove the element of the queue which was inserted at first.&amp;lt;ref name=&amp;quot;ref_50f8&amp;quot; /&amp;gt;&lt;br /&gt;
* The queue data structure ensures that you come out in the order in which you joined the line/queue.&amp;lt;ref name=&amp;quot;ref_411c&amp;quot;&amp;gt;[https://www.thecodingdelight.com/queue-data-structure-array-implementation/ Introduction to the Queue Data Structure – Array Implementation]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* FIFO just means that the items are popped off the queue in the order that it goes in.&amp;lt;ref name=&amp;quot;ref_411c&amp;quot; /&amp;gt;&lt;br /&gt;
* Conversely, the latest element that was added to the queue is the last element to leave the queue.&amp;lt;ref name=&amp;quot;ref_411c&amp;quot; /&amp;gt;&lt;br /&gt;
* Items in the queue are dequeued in the order that they enter the queue.&amp;lt;ref name=&amp;quot;ref_411c&amp;quot; /&amp;gt;&lt;br /&gt;
* queues provides a number of efficient FIFO Queue data structures for usage in your libraries.&amp;lt;ref name=&amp;quot;ref_0108&amp;quot;&amp;gt;[https://docs.rs/queues/1.0.1 queues]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* add : Also called queue or push , this adds elements to the queue.&amp;lt;ref name=&amp;quot;ref_0108&amp;quot; /&amp;gt;&lt;br /&gt;
* , this removes the oldest element from the queue.&amp;lt;ref name=&amp;quot;ref_0108&amp;quot; /&amp;gt;&lt;br /&gt;
* is the maximum number of elements expected in the queue.&amp;lt;ref name=&amp;quot;ref_d985&amp;quot;&amp;gt;[https://www.edureka.co/blog/queue-data-structure-in-python/ What is Queue Data Structure In Python?]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* As of now, you have already understood the basics of queue.&amp;lt;ref name=&amp;quot;ref_d985&amp;quot; /&amp;gt;&lt;br /&gt;
* Print Queue in Windows uses a queue to store all the active and pending print jobs.&amp;lt;ref name=&amp;quot;ref_d985&amp;quot; /&amp;gt;&lt;br /&gt;
* Based on the print commands, the documents will get lined up in the print queue.&amp;lt;ref name=&amp;quot;ref_d985&amp;quot; /&amp;gt;&lt;br /&gt;
* To understand a queue, think of a cafeteria line: the person at the front is served first, and people are added to the line at the back.&amp;lt;ref name=&amp;quot;ref_8d7e&amp;quot;&amp;gt;[https://www.cprogramming.com/tutorial/computersciencetheory/queue.html Cprogramming.com]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Although the concept may be simple, programming a queue is not as simple as programming a stack.&amp;lt;ref name=&amp;quot;ref_8d7e&amp;quot; /&amp;gt;&lt;br /&gt;
* There are a couple of basic ways to implement a queue.&amp;lt;ref name=&amp;quot;ref_8d7e&amp;quot; /&amp;gt;&lt;br /&gt;
* Queue is a linear data structure in which the insertion and deletion operations are performed at two different ends.&amp;lt;ref name=&amp;quot;ref_b892&amp;quot;&amp;gt;[http://www.btechsmartclass.com/data_structures/queue-adt.html Data Structures Tutorials]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Queue data structure can be implemented in two ways.&amp;lt;ref name=&amp;quot;ref_b892&amp;quot; /&amp;gt;&lt;br /&gt;
* When a queue is implemented using an array, that queue can organize an only limited number of elements.&amp;lt;ref name=&amp;quot;ref_b892&amp;quot; /&amp;gt;&lt;br /&gt;
* When a queue is implemented using a linked list, that queue can organize an unlimited number of elements.&amp;lt;ref name=&amp;quot;ref_b892&amp;quot; /&amp;gt;&lt;br /&gt;
* The string can be considered as a queue.&amp;lt;ref name=&amp;quot;ref_5b76&amp;quot;&amp;gt;[https://www.hackerearth.com/practice/data-structures/queues/basics-of-queues/tutorial/ Basics of Queues Tutorials &amp;amp; Notes]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In a standard queue, a character is inserted at the back and deleted in the front.&amp;lt;ref name=&amp;quot;ref_5b76&amp;quot; /&amp;gt;&lt;br /&gt;
* In a standard queue, when an element is deleted, the vacant space is not reutilized.&amp;lt;ref name=&amp;quot;ref_5b76&amp;quot; /&amp;gt;&lt;br /&gt;
* The name queue comes from the analogy to a queue of customers at a bank.&amp;lt;ref name=&amp;quot;ref_3801&amp;quot;&amp;gt;[https://www.javascripttutorial.net/javascript-queue/ JavaScript Queue: How to Implement a Queue Using a JavaScript Array]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The enqueue() method adds an element at the end of the queue.&amp;lt;ref name=&amp;quot;ref_3801&amp;quot; /&amp;gt;&lt;br /&gt;
* The dequeue() method removes an element from the front of the queue.&amp;lt;ref name=&amp;quot;ref_3801&amp;quot; /&amp;gt;&lt;br /&gt;
* A Double Ended Queue lets you add and remove elements at both ends of the queue.&amp;lt;ref name=&amp;quot;ref_00d8&amp;quot;&amp;gt;[https://www.journaldev.com/21355/swift-queue-data-structure Swift Queue Data Structure Implementation]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The most recently added item in the queue must wait at the end of the collection.&amp;lt;ref name=&amp;quot;ref_58da&amp;quot;&amp;gt;[https://bradfieldcs.com/algos/queues/introduction/ Introduction to Queues]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The simplest example of a queue is the typical line that we all participate in from time to time.&amp;lt;ref name=&amp;quot;ref_58da&amp;quot; /&amp;gt;&lt;br /&gt;
* Well-behaved lines, or queues, are very restrictive in that they have only one way in and only one way out.&amp;lt;ref name=&amp;quot;ref_58da&amp;quot; /&amp;gt;&lt;br /&gt;
* Operating systems also use a number of different queues to control processes within a computer.&amp;lt;ref name=&amp;quot;ref_58da&amp;quot; /&amp;gt;&lt;br /&gt;
* Queue is an important structure for storing and retrieving data and hence is used extensively among all the data structures.&amp;lt;ref name=&amp;quot;ref_a746&amp;quot;&amp;gt;[https://www.thecrazyprogrammer.com/2019/01/types-of-queues-in-data-structure.html Types of Queues in Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* As is clear from the name itself, simple queue lets us perform the operations simply.&amp;lt;ref name=&amp;quot;ref_a746&amp;quot; /&amp;gt;&lt;br /&gt;
* The most well-known operations of queues: FIFO.&amp;lt;ref name=&amp;quot;ref_f92b&amp;quot;&amp;gt;[https://www.cpp.edu/~ftang/courses/CS240/lectures/queue.htm CS240: Data Structures &amp;amp; Algorithms I]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* There are also non-FIFO queue data structures, like a priority queue, where an element is added or removed based on its priority.&amp;lt;ref name=&amp;quot;ref_f92b&amp;quot; /&amp;gt;&lt;br /&gt;
* In operating systems, queues can be used in many places to handle multiple jobs.&amp;lt;ref name=&amp;quot;ref_f92b&amp;quot; /&amp;gt;&lt;br /&gt;
* A queue follows FIFO (First-in, First out) policy.&amp;lt;ref name=&amp;quot;ref_e506&amp;quot;&amp;gt;[https://www.codesdope.com/course/data-structures-queue/ Queue Data Structure Using Array and Linked List]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Similar to the stack, we will implement the queue using a linked list as well as with an array.&amp;lt;ref name=&amp;quot;ref_e506&amp;quot; /&amp;gt;&lt;br /&gt;
* Enqueue → Enqueue is an operation which adds an element to the queue.&amp;lt;ref name=&amp;quot;ref_e506&amp;quot; /&amp;gt;&lt;br /&gt;
* We will maintain two pointers - tail and head to represent a queue.&amp;lt;ref name=&amp;quot;ref_e506&amp;quot; /&amp;gt;&lt;br /&gt;
* The most common data structure for implementing queues are cyclic dynamic arrays and singly linked lists.&amp;lt;ref name=&amp;quot;ref_86b7&amp;quot;&amp;gt;[https://ece.uwaterloo.ca/~dwharder/aads/Abstract_data_types/Linear_ordering/Queue/ Abstract Queue / Queue ADT]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Queue data structures consist of ordered elements of the same data type.&amp;lt;ref name=&amp;quot;ref_a446&amp;quot;&amp;gt;[https://dev.to/kauresss/queue-data-structure-in-c-and-operations-256n Queue data structure in C++ and operations]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Now let&amp;#039;s add an element into the array implementation of a queue, i.e. enqueue/push/insert an element into index 0 of an array.&amp;lt;ref name=&amp;quot;ref_a446&amp;quot; /&amp;gt;&lt;br /&gt;
* In the 2nd method, the element is removed from the front/head of the queue as required.&amp;lt;ref name=&amp;quot;ref_a446&amp;quot; /&amp;gt;&lt;br /&gt;
* Because of moving the head one position forward, the length of the queue reduces by 1.&amp;lt;ref name=&amp;quot;ref_a446&amp;quot; /&amp;gt;&lt;br /&gt;
* In this article, we’ll learn four types of queues with their applications.&amp;lt;ref name=&amp;quot;ref_6039&amp;quot;&amp;gt;[https://www.baeldung.com/cs/types-of-queues Types of Queues]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In this queue, the last node points to the first node and creates a circular connection.&amp;lt;ref name=&amp;quot;ref_6039&amp;quot; /&amp;gt;&lt;br /&gt;
* A priority queue is a special kind of queue in which each item has a predefined priority of service.&amp;lt;ref name=&amp;quot;ref_6039&amp;quot; /&amp;gt;&lt;br /&gt;
* In this queue, the enqueue and dequeue operations take place at both front and rear.&amp;lt;ref name=&amp;quot;ref_6039&amp;quot; /&amp;gt;&lt;br /&gt;
* The queue is a linear data structure used to represent a linear list.&amp;lt;ref name=&amp;quot;ref_5ecc&amp;quot;&amp;gt;[https://www.w3schools.in/data-structures-tutorial/queue/ Concepts of Queue in Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The term front and rear are frequently used while describing queues in a linked list.&amp;lt;ref name=&amp;quot;ref_5ecc&amp;quot; /&amp;gt;&lt;br /&gt;
* In the concept of a queue, the first element to be inserted in the queue will be the first element to be deleted or removed from the list.&amp;lt;ref name=&amp;quot;ref_5ecc&amp;quot; /&amp;gt;&lt;br /&gt;
* So Queue is said to follow the FIFO (First In First Out) structure.&amp;lt;ref name=&amp;quot;ref_5ecc&amp;quot; /&amp;gt;&lt;br /&gt;
* In contrast to stack that uses the LIFO approach, queue uses the FIFO (first in, first out) approach.&amp;lt;ref name=&amp;quot;ref_2904&amp;quot;&amp;gt;[https://www.softwaretestinghelp.com/queue-in-cpp/ Queue Data Structure In C++ With Illustration]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* With this approach, the first item that is added to the queue is the first item to be removed from the queue.&amp;lt;ref name=&amp;quot;ref_2904&amp;quot; /&amp;gt;&lt;br /&gt;
* In a real-world analogy, we can imagine a bus queue where the passengers wait for the bus in a queue or a line.&amp;lt;ref name=&amp;quot;ref_2904&amp;quot; /&amp;gt;&lt;br /&gt;
* In software terms, the queue can be viewed as a set or collection of elements as shown below.&amp;lt;ref name=&amp;quot;ref_2904&amp;quot; /&amp;gt;&lt;br /&gt;
* A queue supports the insert and remove operations using a first-in first-out (FIFO) discipline.&amp;lt;ref name=&amp;quot;ref_cd29&amp;quot;&amp;gt;[https://introcs.cs.princeton.edu/java/43stack/ Stacks and Queues]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Linked-list implementation of a queue.&amp;lt;ref name=&amp;quot;ref_cd29&amp;quot; /&amp;gt;&lt;br /&gt;
* Queue.java implements a FIFO queue of strings using a linked list.&amp;lt;ref name=&amp;quot;ref_cd29&amp;quot; /&amp;gt;&lt;br /&gt;
* Like Stack , we maintain a reference first to the least-recently added Node on the queue.&amp;lt;ref name=&amp;quot;ref_cd29&amp;quot; /&amp;gt;&lt;br /&gt;
* A queue is a first-in first-out (FIFO) abstract data type that is heavily used in computing.&amp;lt;ref name=&amp;quot;ref_9751&amp;quot;&amp;gt;[https://en.wikibooks.org/wiki/A-level_Computing/AQA/Paper_1/Fundamentals_of_data_structures/Queues Programming Concepts: Queues]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In this queue form, elements are able to join the queue at one end and can exit from the queue at the other end.&amp;lt;ref name=&amp;quot;ref_9751&amp;quot; /&amp;gt;&lt;br /&gt;
* The first person into the queue is the first person to be served.&amp;lt;ref name=&amp;quot;ref_9751&amp;quot; /&amp;gt;&lt;br /&gt;
* The most basic implementation of a linear queue would work its way through its allotted memory, without reusing memory.&amp;lt;ref name=&amp;quot;ref_9751&amp;quot; /&amp;gt;&lt;br /&gt;
* The Queue and Stack are similar but they follow different principles when comes to the how the inserts and removes are manipulated.&amp;lt;ref name=&amp;quot;ref_799d&amp;quot;&amp;gt;[https://medium.com/@lucasmagnum/sidenotes-queue-abstract-data-type-and-data-structure-f634f3be9e85 #SideNotes — Queue — Abstract Data Type and Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The Queue is a known principle in our daily lives when we go shopping we need to be in a queue to the cashier.&amp;lt;ref name=&amp;quot;ref_799d&amp;quot; /&amp;gt;&lt;br /&gt;
* Priority queues are a kind of abstract data type that generalizes the queue.&amp;lt;ref name=&amp;quot;ref_799d&amp;quot; /&amp;gt;&lt;br /&gt;
* Their principles are exactly the same except that they also include a priority for every value in the queue.&amp;lt;ref name=&amp;quot;ref_799d&amp;quot; /&amp;gt;&lt;br /&gt;
* Queues are pretty much what their name implies: think of queues as a line of people.&amp;lt;ref name=&amp;quot;ref_d3f3&amp;quot;&amp;gt;[https://medium.com/@angeloacebedo/data-structures-stacks-and-queues-7cc8790b9ce8 Abstract Data Types: Stacks and Queues]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The 2 most important functions in a queue are dequeue() and enqueue().&amp;lt;ref name=&amp;quot;ref_d3f3&amp;quot; /&amp;gt;&lt;br /&gt;
* The function dequeue() removes the first element of a queue, and enqueue() “pushes” an element to the end of the queue.&amp;lt;ref name=&amp;quot;ref_d3f3&amp;quot; /&amp;gt;&lt;br /&gt;
* A common implementation of a queue is with Doubly Linked Lists, so we will use that data structure to analyze the handling of pointers.&amp;lt;ref name=&amp;quot;ref_d3f3&amp;quot; /&amp;gt;&lt;br /&gt;
* A real-world example of queue can be a single-lane one-way road, where the vehicle enters first, exits first.&amp;lt;ref name=&amp;quot;ref_cea9&amp;quot;&amp;gt;[https://www.tutorialspoint.com/data_structures_algorithms/dsa_queue.htm Data Structure and Algorithms]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* As we now understand that in queue, we access both ends for different reasons.&amp;lt;ref name=&amp;quot;ref_cea9&amp;quot; /&amp;gt;&lt;br /&gt;
* As in stacks, a queue can also be implemented using Arrays, Linked-lists, Pointers and Structures.&amp;lt;ref name=&amp;quot;ref_cea9&amp;quot; /&amp;gt;&lt;br /&gt;
* Queue operations may involve initializing or defining the queue, utilizing it, and then completely erasing it from the memory.&amp;lt;ref name=&amp;quot;ref_cea9&amp;quot; /&amp;gt;&lt;br /&gt;
* If you go to a ticket counter to buy movie tickets, and are first in the queue, then you will be the first one to get the tickets.&amp;lt;ref name=&amp;quot;ref_78d8&amp;quot;&amp;gt;[https://www.studytonight.com/data-structures/queue-data-structure Queue Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Like stack, queue is also an ordered list of elements of similar data types.&amp;lt;ref name=&amp;quot;ref_78d8&amp;quot; /&amp;gt;&lt;br /&gt;
* Queue can be implemented using an Array, Stack or Linked List.&amp;lt;ref name=&amp;quot;ref_78d8&amp;quot; /&amp;gt;&lt;br /&gt;
* Initially the head(FRONT) and the tail(REAR) of the queue points at the first index of the array (starting the index of array from 0 ).&amp;lt;ref name=&amp;quot;ref_78d8&amp;quot; /&amp;gt;&lt;br /&gt;
* Queues maintain a FIFO ordering property.&amp;lt;ref name=&amp;quot;ref_8e2e&amp;quot;&amp;gt;[https://runestone.academy/runestone/books/published/pythonds/BasicDS/TheQueueAbstractDataType.html 4.11. The Queue Abstract Data Type — Problem Solving with Algorithms and Data Structures]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Queue() creates a new queue that is empty.&amp;lt;ref name=&amp;quot;ref_8e2e&amp;quot; /&amp;gt;&lt;br /&gt;
* dequeue() removes the front item from the queue.&amp;lt;ref name=&amp;quot;ref_8e2e&amp;quot; /&amp;gt;&lt;br /&gt;
* Inserting in the Queue in the rear end is known as Enqueue and Deleting from the Queue from the front end is called Deque.&amp;lt;ref name=&amp;quot;ref_5eb7&amp;quot;&amp;gt;[https://www.codingninjas.com/blog/2020/10/10/queue-data-structure-and-its-applications/ Queue Data Structure and its applications]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Queue supports access of the elements in the queue from both the ends of the structure.&amp;lt;ref name=&amp;quot;ref_5eb7&amp;quot; /&amp;gt;&lt;br /&gt;
* A Queue is a linear structure which follows a particular order in which the operations are performed.&amp;lt;ref name=&amp;quot;ref_ecb3&amp;quot;&amp;gt;[https://www.geeksforgeeks.org/queue-data-structure/ Queue Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first.&amp;lt;ref name=&amp;quot;ref_ecb3&amp;quot; /&amp;gt;&lt;br /&gt;
* The difference between stacks and queues is in removing.&amp;lt;ref name=&amp;quot;ref_ecb3&amp;quot; /&amp;gt;&lt;br /&gt;
* In the above image, since 1 was kept in the queue before 2, it was the first to be removed from the queue as well.&amp;lt;ref name=&amp;quot;ref_424a&amp;quot;&amp;gt;[https://www.programiz.com/dsa/queue Queue Data Structure]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Q has only one element, so we reset the queue after deleting it.&amp;lt;ref name=&amp;quot;ref_424a&amp;quot; /&amp;gt;&lt;br /&gt;
* The queue is used for synchronization.&amp;lt;ref name=&amp;quot;ref_424a&amp;quot; /&amp;gt;&lt;br /&gt;
* The operations of a queue make it a first-in-first-out (FIFO) data structure.&amp;lt;ref name=&amp;quot;ref_e0a1&amp;quot;&amp;gt;[https://en.wikipedia.org/wiki/Queue_(abstract_data_type) Queue (abstract data type)]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In a FIFO data structure, the first element added to the queue will be the first one to be removed.&amp;lt;ref name=&amp;quot;ref_e0a1&amp;quot; /&amp;gt;&lt;br /&gt;
* In these contexts, the queue performs the function of a buffer.&amp;lt;ref name=&amp;quot;ref_e0a1&amp;quot; /&amp;gt;&lt;br /&gt;
* Fixed-length arrays are limited in capacity, but it is not true that items need to be copied towards the head of the queue.&amp;lt;ref name=&amp;quot;ref_e0a1&amp;quot; /&amp;gt;&lt;br /&gt;
* In a simple queue, insertion takes place at the rear and removal occurs at the front.&amp;lt;ref name=&amp;quot;ref_c0c5&amp;quot;&amp;gt;[https://www.programiz.com/dsa/types-of-queue Types of Queue]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* A priority queue is a special type of queue in which each element is associated with a priority and is served according to its priority.&amp;lt;ref name=&amp;quot;ref_c0c5&amp;quot; /&amp;gt;&lt;br /&gt;
* Double Ended Queue is a type of queue in which insertion and removal of elements can be performed from either from the front or rear.&amp;lt;ref name=&amp;quot;ref_c0c5&amp;quot; /&amp;gt;&lt;br /&gt;
* A Queue is a linear data structure in which data is stored in a First In, First Out manner.&amp;lt;ref name=&amp;quot;ref_4ce9&amp;quot;&amp;gt;[https://www.section.io/engineering-education/queue-data-structure-python/ Using the Queue Data Structure in Python]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* In a queue, the item that was added the earliest is removed first.&amp;lt;ref name=&amp;quot;ref_4ce9&amp;quot; /&amp;gt;&lt;br /&gt;
* - often maintain queues while implementing various low-level operations such as CPU Scheduling, Disk Scheduling, etc.&amp;lt;ref name=&amp;quot;ref_4ce9&amp;quot; /&amp;gt;&lt;br /&gt;
* - hardware interrupts are handled using queues.&amp;lt;ref name=&amp;quot;ref_4ce9&amp;quot; /&amp;gt;&lt;br /&gt;
===소스===&lt;br /&gt;
 &amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pythagoras0</name></author>
	</entry>
</feed>