S. Muthusundari, V. Devi, S. Sharath Kumar, D. Sudhish Reddy, Kannedari Uday Kiran, Pulimi Hanith Sai Kumar Reddy, Gosani Bhanu Sai Priya, Katragunta Yagna Priya
{"title":"Stack sort – a new approach with sorting network and a buffer","authors":"S. Muthusundari, V. Devi, S. Sharath Kumar, D. Sudhish Reddy, Kannedari Uday Kiran, Pulimi Hanith Sai Kumar Reddy, Gosani Bhanu Sai Priya, Katragunta Yagna Priya","doi":"10.56294/sctconf2024898","DOIUrl":null,"url":null,"abstract":"Knuth introduced the problem of stack sorting. Stack sorting was implemented by t stacks in series. In this paper, we propose a new dimension to stack sorting problem by introducing a stack with sorting network and a petty buffer. Instead of using t stacks in series, it helps to improve the performance by avoiding shuffles the stack. The basic idea behind in this paper is to perform a stack sorting with a single stack, and to achieve greater performance. In this novel approach, 2 bit buffer is compared to stack and insert the element into stack in order to avoid multiple stack. The result shows the time complexity of the proposed algorithm is O (n).","PeriodicalId":270620,"journal":{"name":"Salud, Ciencia y Tecnología - Serie de Conferencias","volume":"109 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Salud, Ciencia y Tecnología - Serie de Conferencias","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.56294/sctconf2024898","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Knuth introduced the problem of stack sorting. Stack sorting was implemented by t stacks in series. In this paper, we propose a new dimension to stack sorting problem by introducing a stack with sorting network and a petty buffer. Instead of using t stacks in series, it helps to improve the performance by avoiding shuffles the stack. The basic idea behind in this paper is to perform a stack sorting with a single stack, and to achieve greater performance. In this novel approach, 2 bit buffer is compared to stack and insert the element into stack in order to avoid multiple stack. The result shows the time complexity of the proposed algorithm is O (n).
Knuth 引入了堆栈排序问题。堆栈排序由 t 个堆栈串联实现。在本文中,我们通过引入带有排序网络和小缓冲区的堆栈,为堆栈排序问题提出了一个新的维度。与使用 t 个串联堆栈相比,它可以避免对堆栈进行洗牌,从而有助于提高性能。本文的基本思路是用单个堆栈执行堆栈排序,并实现更高的性能。在这种新方法中,将 2 位缓冲区与堆栈相比较,并将元素插入堆栈,以避免多重堆栈。结果表明,所提算法的时间复杂度为 O (n)。