What is Fixed Capacity Queue, it’s real life applications in AI and how to implement Priority Queue?

  • Non-Fixed Capacity Queue ::
    This type is queue, user can append data as long as he/she wants or unless the RAM gets full.
  • Fixed Capacity Queue ::
    Fixed Capacity or size means, developer sets a limit on how many elements can be queued.
  • Banks
    AI is used in banking, which is so far higher value for banks, is in fraud detection. It can be hard for humans to understand patterns, but machines are good at it. Managing queue will resolve challenges in terms of operational efficiency as well as cost involved in training fraud reviewers for particular fraud types. Also, will help to optimize the business process by responding to Fraud incident in efficient and effective manner.
  • Social Media
    Queue is used for scheduling social media posts. Machine learning algorithms are used to design your feed based on your interests.
    1. Tailwind’s focus on assisting you with your visual marketing. It features drag-and-drop functionality that makes it easy for marketers to upload, tag and publish their Pinterest and Instagram posts in bulk. Users can shuffle their post queue, to ensure that they keep variety in their posts.
    2. Crowdfire claims to be the first social media management app that supports posting to TikTok. Crowdfire keeps a queue of content and schedules your posts to go out at the optimal times for your audience.
    3. Socialoomph provides some excellent scheduling and queuing power but is less user-friendly than much of the competition. As a result, it is particularly suitable for social media managers with above-average computing and coding skills. Socialoomph uses queues well. You have multiple ways to automatically fill up “never-go-dry” queues for each social account.
  • Queue management systems combining IoT security cameras and AI video analytics help businesses improve customer experience in stores by reducing waiting times at checkouts. During the COVID 19 pandemic, smart queue management also includes monitoring and ensuring compliance with social distance rules.
  • Travel
    Google maps are used to track or provide shortest path, finding most promising route first, queue is used to keep track of unexplored routes.
  • ChatBots
    Almost every household has a virtual assistant that controls their appliances at home. A few examples include Siri, Cortana, and Alexa, which are gaining popularity because of the user experience they provide. Queue is used to maintain the upcoming songs. Also, chatbots can be used to control the devices at your house, book cabs, make phone calls, order your favorite food, etc. these all are handled using a queue.
  • Other applications
    1. Pizza order system is implemented using FIFO principle.
    2. Printer, to print job in order.
    3. CPU Scheduling → To share a resource among multiple customers.
    4. Transfer network packet in Routers or switch.
    5. Keyboard buffering is done using queue data structure.
    6. Load balancing and Interrupt Handling in Operating System.
  1. Define priorities, “3” = serious patient, “2” = half serious and “1” = general checkup.
  2. Create a user defined data type for Patient and Database.
  3. Insert patient based on its type. (serious patient = first priority, half serious patient = second priority, general checkup = least priority).
  4. Provide service to patient with highest priority.
  5. Display database to understand patient data in priority queue form.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store