Информатика и информационные технологии: конспект лекций. А. В. Цветкова
Чтение книги онлайн.

Читать онлайн книгу Информатика и информационные технологии: конспект лекций - А. В. Цветкова страница 16

СКАЧАТЬ pTop = NIL;

      end.

      3. Очереди

      Очередью называется динамическая структура данных, добавление компоненты в которую производится в один конец, а выборка осуществляется с другого конца. Очередь работает по принципу FIFO (First-In, First-Out) – «Поступивший первым, обслуживается первым».

      Конец ознакомительного фрагмента.

      Текст предоставлен ООО «ЛитРес».

      Прочитайте эту книгу целиком, купив полную легальную версию на ЛитРес.

      Безопасно оплатить книгу можно банковской картой Visa, MasterCard, Maestro, со счета мобильного телефона, с платежного терминала, в салоне МТС или Связной, через PayPal, WebMoney, Яндекс.Деньги, QIWI Кошелек, бонусными картами или другим удобным Вам способом.

iVBORw0KGgoAAAANSUhEUgAAAbMAAACWBAMAAACm1XuFAAAAMFBMVEUGAgXNl1haodIbJH230dZRTk/7/vsWUpbtxYuBbYigqb0iD06fYTgycqymloZ5LhxAGMM0AAANNUlEQVR4Xu2bcWgcV37Hl924SyoWBslB9IQIAfFQy/11LAP958hymx+rs+otit2itmfuceMvP/mmmn/E0EIIi9euUNe6bXKqQCYn02IWXwk1LBNBAg6LpCLKIkpBPFI4ApfKBoXDMVKCKMtC582uVneRYms265MR83uyJb19b37vo+97u2++vInhrMaPY2c2zjTaj/8AT4kezddTSPH7R4vQIrQIzZ6sXdk/SV5r89d9ordo1v6ryTsH1xx7YiJccC2Fw6AjaFNkqLGToOE6JwhdRL8U34S26LzEBy/+32MKByZKy0FfKfoB4B+PoF2Doa6dCO0GJ9BNzP2SvgENFaeKCoJghXAxi4V2z9vBD1fp6FozFE6o2h71eq05HtoxjXDBE3j0uxXpY9HKXrla+NOa+0zVjC1D/eyhKKcMjx9fspYmMLdUKXsFD1jazDVG++hnrwjjk4aY27GMrfpoIpcYT2VS34hmV8GX14R1ZXH65rBVm5mlnQVOUMHjX1/CwztxoPBhzdUZPdTFrbeS+TsvX2kI3XPF+pclgc83yR/Tp5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