Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ability to change queue mode, example First In First Out to Last In Last Out, and the other queue types #6

Open
shodanx2 opened this issue Apr 18, 2023 · 0 comments

Comments

@shodanx2
Copy link

I'm not sure which stack/queue mode would be most useful, but their algo are so simple and well known, I suggest just adding the most common

From a random internet page

https://everythingcomputerscience.com/discrete_mathematics/Stacks_and_Queues.html

Queue: First In First Out (FIFO): The first object into a queue is the first object to leave the queue, used by a queue.
Stack: Last In First Out (LIFO): The last object into a stack is the first object to leave the stack, used by a stack
Stack: First In Last Out (FILO): The first object or item in a stack is the last object or item to leave the stack.
Queue: Last In Last Out (LILO): The last object or item in a queue is the last object or item to leave the queue.

Also there would be random output, where items are just taken out of the queue at random

And then there is of course the holygrail which is "netflix's content recommendation engine queue"
Where somehow, based on user history, front weighted, the next link is chosen based on what the user has been interacting with, this is, very advanced stuff

Somewhat related, a sort algorithm could be added to the queues
The four main examples above output links based on "time or order they were added in"
But they could be sorted instead

Titles Alphanumerically ascending or descending
By domain name ascending or descending
By topic name ascending or descending (I would use a GPT LLM, feed title,url and page context text with prompt "what is the topic category of this web page" and use the result for topic tag and sorting)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant