Skip to content

an imolementation of priority stack based on a red-black tree concept

Notifications You must be signed in to change notification settings

SigmaKlim/Priority-Stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Priority-Stack

An implementation of priority stack based on a red-black tree concept

The data is stored in a red-black tree with nodes containing priority value and a LIFO-stack instance for storing values of the same priority. Memory is allocated and freed dynamically. Both Pop and Push operations require time O(log(n)). Clear operation requires O(n) time.

About

an imolementation of priority stack based on a red-black tree concept

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages