answersLogoWhite

0

What are the application of the stack?

Updated: 9/16/2022
User Avatar

Wiki User

9y ago

Best Answer

One of the applications that I use a stack for is searching through a file system (or a large/complex tree).

stack s;

s.push(start_directory);

while( !s.empty() )

current = s.pop();

s.pushAll( current.children );

if( s is what we're looking for )

exit();

// otherwise, keep looping

User Avatar

Raymundo Sporer

Lvl 10
1y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

Stacks are primarily used to implement backtracking algorithms.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the application of the stack?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are application of stack?

Stacks are primarily used to implement backtracking algorithms.


How do you fix stack overflow at line 439?

A lot of stack overflows are caused by buggy programs. See if the application that is causing it (should be in the Event Viewer) has a patch.


What layer of the IP stack represents data users as well as encodes and controls the dialog.?

Application


What layer of the IP stack represents data users as well as encodes and controls the dialog?

Application


Real time applications of stack?

The Most Best real time application is that the EXPRESSION EVALUATION


What is the application of stack in computer science?

A stack is a series of storage locations for data or instructions. These can be popped off the stack as needed, and pushed down onto the stack to be stored. They can be accessed in a LIFO or FIFO fashion.


Application protocol of ftp?

File Transfer Protocol (FTP) is found in the TCP/IP stack of the Application Layer of the OSI reference model. FTP is specialized for sending and receiving files.


Why is union used in C?

Union is used in case of libraries which return assorted data's. for example, say a stack library is present which can return an int or double depending on what is on top of stack. in such a case, the application layer should be able to receive from library either int or double. so in application layer we use union.


Highlight at least 3 area where application of stack is important in computing systems?

4x2-11X=7 ARRANGE IN STANDARD FORM


What are the four layers of the protocol stack used when an email client requests email over the internet?

Application, transport, Internet, and Network Interface.


Give 10 real application of stack?

The real life application of stack are as follows:- 1)Compact Disks(CD) kept in CD Holder 2)The tennis balls in their container 3)Basic OFFICE functions like word processor 4)Books kept one above another 5)Processing of procedure calls and their termination


What is React Native?

Most of the business develop a mobile application through agile methodologies, where It involves adopting new technologies like react native and suitable bad end tech stack, which reduce the development cost and time. This new tech stack enables the organisation to launch the mobile application in the beta and improvise the versions by version control using to deliver a robust mobile user experience. In order, if you are looking for a robust mobile application, check for the Best mobile application development company in chennai