SlideShare a Scribd company logo
Enviar búsqueda
Cargar
Iniciar sesión
Registrarse
Linked List Implementation of Deque in C
Denunciar
Kasun Ranga Wijeweera
Seguir
Lecturer en University of Ruhuna
15 de May de 2013
•
0 recomendaciones
•
8,050 vistas
Linked List Implementation of Deque in C
15 de May de 2013
•
0 recomendaciones
•
8,050 vistas
Kasun Ranga Wijeweera
Seguir
Lecturer en University of Ruhuna
Denunciar
Tecnología
Empresariales
Linked List Implementation of Deque in C
1 de 8
Descargar ahora
1
de
8
Recomendados
Decomposition using Functional Dependency
Raj Naik
15.9K vistas
•
23 diapositivas
Astar algorithm
Shuqing Zhang
9K vistas
•
19 diapositivas
countor integral
Sheril Shah
915 vistas
•
11 diapositivas
Linked stacks and queues
Ramzi Alqrainy
8.8K vistas
•
7 diapositivas
Control statement in c
baabtra.com - No. 1 supplier of quality freshers
7.1K vistas
•
25 diapositivas
Abstract Class & Abstract Method in Core Java
MOHIT AGARWAL
1.8K vistas
•
10 diapositivas
Más contenido relacionado
La actualidad más candente
06. operator overloading
Haresh Jaiswal
8.3K vistas
•
18 diapositivas
Advanced Python : Decorators
Bhanwar Singh Meena
3.2K vistas
•
12 diapositivas
Implementation of queue using singly and doubly linked list.
central university of bihar
3.9K vistas
•
36 diapositivas
Queue Implementation Using Array & Linked List
PTCL
5.4K vistas
•
16 diapositivas
07. Virtual Functions
Haresh Jaiswal
18K vistas
•
20 diapositivas
Control structures in java
VINOTH R
5.5K vistas
•
32 diapositivas
La actualidad más candente
(20)
06. operator overloading
Haresh Jaiswal
•
8.3K vistas
Advanced Python : Decorators
Bhanwar Singh Meena
•
3.2K vistas
Implementation of queue using singly and doubly linked list.
central university of bihar
•
3.9K vistas
Queue Implementation Using Array & Linked List
PTCL
•
5.4K vistas
07. Virtual Functions
Haresh Jaiswal
•
18K vistas
Control structures in java
VINOTH R
•
5.5K vistas
NFA to DFA
Animesh Chaturvedi
•
10.6K vistas
Taylor series
Milan Bhatiya
•
1.1K vistas
Queue ppt
SouravKumar328
•
16.4K vistas
A Star Search
Computing Cage
•
398 vistas
Recursive Function
Harsh Pathak
•
6.5K vistas
Java if else condition - powerpoint persentation
Maneesha Caldera
•
1.4K vistas
Chapter 2 : Balagurusamy_ Programming ANsI in C
BUBT
•
4.8K vistas
Telephone billing system in c++
vikram mahendra
•
8.8K vistas
Function in c
Raj Tandukar
•
6.7K vistas
Control flow statements in java
yugandhar vadlamudi
•
2.4K vistas
Bfs and Dfs
Masud Parvaze
•
15.8K vistas
Functions in C++
Sachin Sharma
•
13.6K vistas
Chapter 6 Balagurusamy Programming ANSI in c
BUBT
•
7.8K vistas
Os lab file c programs
Kandarp Tiwari
•
13.8K vistas
Destacado
Exercises for Convexity of Polygons
Kasun Ranga Wijeweera
268 vistas
•
1 diapositiva
Deque and its applications
Jsaddam Hussain
44.2K vistas
•
18 diapositivas
Formulacion de-qumica-inorganica-120319205240-phpapp01-131119105305-phpapp02-...
Ariel Carrion
1K vistas
•
24 diapositivas
Stacks and queue
Amit Vats
942 vistas
•
76 diapositivas
Stacks, Queues, Deques
A-Tech and Software Development
1.2K vistas
•
28 diapositivas
Stacks,queues,linked-list
pinakspatel
1.6K vistas
•
18 diapositivas
Destacado
(20)
Exercises for Convexity of Polygons
Kasun Ranga Wijeweera
•
268 vistas
Deque and its applications
Jsaddam Hussain
•
44.2K vistas
Formulacion de-qumica-inorganica-120319205240-phpapp01-131119105305-phpapp02-...
Ariel Carrion
•
1K vistas
Stacks and queue
Amit Vats
•
942 vistas
Stacks, Queues, Deques
A-Tech and Software Development
•
1.2K vistas
Stacks,queues,linked-list
pinakspatel
•
1.6K vistas
Ds lab manual by s.k.rath
SANTOSH RATH
•
3K vistas
Computing the Area of a Polygon
Kasun Ranga Wijeweera
•
452 vistas
Methods in Java
Kasun Ranga Wijeweera
•
338 vistas
Flood Filling Algorithm in C
Kasun Ranga Wijeweera
•
519 vistas
Classes and objects
Kasun Ranga Wijeweera
•
150 vistas
Linked List Implementation of Stack in C
Kasun Ranga Wijeweera
•
1.1K vistas
Wave ECG
Kasun Ranga Wijeweera
•
315 vistas
Exercises for Two Dimensional Geometric Transformations
Kasun Ranga Wijeweera
•
277 vistas
Improving the accuracy of k-means algorithm using genetic algorithm
Kasun Ranga Wijeweera
•
187 vistas
Data structure new lab manual
SANTOSH RATH
•
2.8K vistas
Digital Differential Analyzer Line Drawing Algorithm in C
Kasun Ranga Wijeweera
•
453 vistas
Access modifiers
Kasun Ranga Wijeweera
•
458 vistas
Implementation of k-means clustering algorithm in C
Kasun Ranga Wijeweera
•
4.9K vistas
Principles of Object Oriented Programming
Kasun Ranga Wijeweera
•
274 vistas
Similar a Linked List Implementation of Deque in C
Linked List Implementation of Queue in C
Kasun Ranga Wijeweera
1.7K vistas
•
6 diapositivas
Data Structure in C++Doubly Linked Lists of ints httpstaffwww.pdf
jyothimuppasani1
2 vistas
•
8 diapositivas
Doubly linklist
ilsamaryum
364 vistas
•
5 diapositivas
Implement of c & its coding programming by sarmad baloch
Sarmad Baloch
78 vistas
•
9 diapositivas
Project Description#include #include struct node {.docx
denneymargareta
1 vista
•
3 diapositivas
Singly linked list.pptx
Santhiya S
44 vistas
•
10 diapositivas
Similar a Linked List Implementation of Deque in C
(20)
Linked List Implementation of Queue in C
Kasun Ranga Wijeweera
•
1.7K vistas
Data Structure in C++Doubly Linked Lists of ints httpstaffwww.pdf
jyothimuppasani1
•
2 vistas
Doubly linklist
ilsamaryum
•
364 vistas
Implement of c & its coding programming by sarmad baloch
Sarmad Baloch
•
78 vistas
Project Description#include #include struct node {.docx
denneymargareta
•
1 vista
Singly linked list.pptx
Santhiya S
•
44 vistas
computer notes - Data Structures - 3
ecomputernotes
•
5 vistas
Dsprograms(2nd cse)
Pradeep Kumar Reddy Reddy
•
950 vistas
C++ programs
Mukund Gandrakota
•
2.8K vistas
C++ Program to Implement Doubly Linked List #includei.pdf
Lalkamal2
•
8 vistas
Bcsl 033 data and file structures lab s5-2
Dr. Loganathan R
•
263 vistas
All I know about rsc.io/c2go
Moriyoshi Koizumi
•
1.4K vistas
This code currently works. Run it and get a screen shot of its ou.docx
Komlin1
•
5 vistas
DS Code (CWH).docx
KamalSaini561034
•
5 vistas
Data structure manual
sameer farooq
•
660 vistas
Metarhia KievJS 22-Feb-2018
Timur Shemsedinov
•
911 vistas
Data structures cs301 power point slides lecture 03
Nasir Mehmood
•
808 vistas
Computer graphics file (3rd semester)
Ketan Rajpal
•
163 vistas
Qestion Please add pre-condition, post-conditions and descriptions .pdf
arihantmobileselepun
•
2 vistas
Gaurav Jatav , BCA Third Year
dezyneecole
•
72 vistas
Más de Kasun Ranga Wijeweera
Decorator Design Pattern in C#
Kasun Ranga Wijeweera
142 vistas
•
3 diapositivas
Singleton Design Pattern in C#
Kasun Ranga Wijeweera
54 vistas
•
3 diapositivas
Introduction to Design Patterns
Kasun Ranga Wijeweera
43 vistas
•
3 diapositivas
Algorithms for Convex Partitioning of a Polygon
Kasun Ranga Wijeweera
104 vistas
•
6 diapositivas
Geometric Transformations II
Kasun Ranga Wijeweera
51 vistas
•
1 diapositiva
Geometric Transformations I
Kasun Ranga Wijeweera
39 vistas
•
2 diapositivas
Más de Kasun Ranga Wijeweera
(20)
Decorator Design Pattern in C#
Kasun Ranga Wijeweera
•
142 vistas
Singleton Design Pattern in C#
Kasun Ranga Wijeweera
•
54 vistas
Introduction to Design Patterns
Kasun Ranga Wijeweera
•
43 vistas
Algorithms for Convex Partitioning of a Polygon
Kasun Ranga Wijeweera
•
104 vistas
Geometric Transformations II
Kasun Ranga Wijeweera
•
51 vistas
Geometric Transformations I
Kasun Ranga Wijeweera
•
39 vistas
Introduction to Polygons
Kasun Ranga Wijeweera
•
41 vistas
Bresenham Line Drawing Algorithm
Kasun Ranga Wijeweera
•
176 vistas
Digital Differential Analyzer Line Drawing Algorithm
Kasun Ranga Wijeweera
•
77 vistas
Loops in Visual Basic: Exercises
Kasun Ranga Wijeweera
•
192 vistas
Conditional Logic: Exercises
Kasun Ranga Wijeweera
•
46 vistas
Getting Started with Visual Basic Programming
Kasun Ranga Wijeweera
•
57 vistas
CheckBoxes and RadioButtons
Kasun Ranga Wijeweera
•
41 vistas
Variables in Visual Basic Programming
Kasun Ranga Wijeweera
•
127 vistas
Loops in Visual Basic Programming
Kasun Ranga Wijeweera
•
82 vistas
Conditional Logic in Visual Basic Programming
Kasun Ranga Wijeweera
•
54 vistas
Assignment for Variables
Kasun Ranga Wijeweera
•
30 vistas
Assignment for Factory Method Design Pattern in C# [ANSWERS]
Kasun Ranga Wijeweera
•
187 vistas
Assignment for Events
Kasun Ranga Wijeweera
•
35 vistas
Mastering Arrays Assignment
Kasun Ranga Wijeweera
•
28 vistas
Último
Supplier Sourcing_Cathy.pptx
CatarinaTorrenuevaMa
18 vistas
•
25 diapositivas
How to use the Cataloguing Code Ethics at your day job : a hands-on workshop ...
CILIP MDG
36 vistas
•
13 diapositivas
Advancing Equity and Inclusion for Deaf Students in Higher Education
3Play Media
147 vistas
•
24 diapositivas
How is AI changing journalism? Strategic considerations for publishers and ne...
Damian Radcliffe
56 vistas
•
108 diapositivas
Mitigating Third-Party Risks: Best Practices for CISOs in Ensuring Robust Sec...
TrustArc
44 vistas
•
21 diapositivas
Document Understanding as Cloud APIs and Generative AI Pre-labeling Extractio...
DianaGray10
117 vistas
•
11 diapositivas
Último
(20)
Supplier Sourcing_Cathy.pptx
CatarinaTorrenuevaMa
•
18 vistas
How to use the Cataloguing Code Ethics at your day job : a hands-on workshop ...
CILIP MDG
•
36 vistas
Advancing Equity and Inclusion for Deaf Students in Higher Education
3Play Media
•
147 vistas
How is AI changing journalism? Strategic considerations for publishers and ne...
Damian Radcliffe
•
56 vistas
Mitigating Third-Party Risks: Best Practices for CISOs in Ensuring Robust Sec...
TrustArc
•
44 vistas
Document Understanding as Cloud APIs and Generative AI Pre-labeling Extractio...
DianaGray10
•
117 vistas
Product Listing Presentation-Maidy Veloso.pptx
MaidyVeloso
•
13 vistas
Keynote: Two years at the British Library... and counting / Alan Danskin (Bri...
CILIP MDG
•
29 vistas
Experts Live Europe 2023 - Ensure your compliance in Microsoft Teams with Mic...
Jasper Oosterveld
•
58 vistas
Understanding Wireguard, TLS and Workload Identity
Christian Posta
•
142 vistas
Elevate Your Enterprise with FME 23.1
Safe Software
•
289 vistas
Unleashing Innovation: IoT Project with MicroPython
Vubon Roy
•
30 vistas
Common WordPress APIs - Options API
Jonathan Bossenger
•
24 vistas
Product Research Presentation-Maidy Veloso.pptx
MaidyVeloso
•
24 vistas
Take Control of Podcasting thanks to Open Source and Podcasting 2.0
🎙 Benjamin Bellamy
•
50 vistas
Demystifying ML/AI
Matthew Reynolds
•
34 vistas
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
NicolasVuillamy1
•
204 vistas
Cloud Composer workshop at Airflow Summit 2023.pdf
Leah Cole
•
84 vistas
The Ultimate Administrator’s Guide to HCL Nomad Web
panagenda
•
53 vistas
Nymity Framework: Privacy & Data Protection Update in 7 States
TrustArc
•
127 vistas
Linked List Implementation of Deque in C
1.
/* Linked List Implementation
of Deque in C Author: Kasun Ranga Wijeweera Email: krw19870829@gmail.com Date: 20130515 */ #include<stdio.h> #include<conio.h> #include<alloc.h> typedef struct dequeNode *link; struct dequeNode { int data; link next; }; typedef struct { link front; link rear; }deque;
2.
void initDeque(deque *d) { d->front=NULL; d->rear=NULL; } int
isEmpty(deque *d) { if((d->front)==NULL) { return 0; } else { return 1; } } void putFront(deque *d,int x) { link t=(link)malloc(sizeof(struct dequeNode)); t->data=x; t->next=NULL;
3.
if(isEmpty(d)) { t->next=d->front; d->front=t; } else { d->front=t; d->rear=t; } } void putRear(deque *d,int
x) { link t=(link)malloc(sizeof(struct dequeNode)); t->data=x; t->next=NULL; if(isEmpty(d)) { d->rear->next=t; d->rear=t; }
4.
else { d->front=t; d->rear=t; } } int getFront(deque *d) { link
t=d->front; int x=t->data; if((d->front)==(d->rear)) { d->front=NULL; d->rear=NULL; } else { d->front=t->next; } free(t); return x; }
5.
int getRear(deque *d) { link
t=d->front; link tr=d->rear; int x=tr->data; if(t==tr) { d->front=NULL; d->rear=NULL; } else { while((t->next)!=tr) { t=t->next; } d->rear=t; t->next=NULL; } free(tr); return x; }
6.
void printDeque(deque *d) { link
t=d->front; while(t!=NULL) { printf("%d ",t->data); t=t->next; } } void main() { int x; deque *d; clrscr(); d=(deque*)malloc(sizeof(deque)); initDeque(d); putFront(d,10); putFront(d,20); putRear(d,30); putFront(d,40);
7.
putRear(d,50); putFront(d,60); printf("n"); printDeque(d); if(isEmpty(d)) x=getFront(d); printf("n"); printDeque(d); if(isEmpty(d)) x=getRear(d); printf("n"); printDeque(d); if(isEmpty(d)) x=getFront(d); printf("n"); printDeque(d); getch();
8.
}