Top "Stack" questions

A stack is a last in, first out (LIFO) abstract data type and data structure.

How can I remember which data structures are used by DFS and BFS?

I always mix up whether I use a stack or a queue for DFS or BFS. Can someone please provide …

stack queue depth-first-search breadth-first-search
How to evaluate an infix expression in just one scan using stacks?

I want to know if there is a way to solve infix expressions in a single pass using 2 stacks? The …

infix-notation stack
Checking available stack size in C

I'm using MinGW with GCC 3.4.5 (mingw-special vista r3). My C application uses a lot of stack so I was wondering …

c stack mingw
Weird MSC 8.0 error: "The value of ESP was not properly saved across a function call..."

We recently attempted to break apart some of our Visual Studio projects into libraries, and everything seemed to compile and …

c++ visual-c++ x86 stack calling-convention
How to change the stack size using ulimit or per process on Mac OS X for a C or Ruby program?

It seems that the recommended way to set stack size for a C program or Ruby program (which uses the …

c ruby stack ulimit
Size of stack and heap memory

Possible Duplicate: What and where are the stack and heap? With regard to the basic concepts of memory layout in …

c memory-management stack heap
Do threads have a distinct heap?

As far as I know each thread gets a distinct stack when the thread is created by the operating system. …

c windows linux multithreading stack
Global memory management in C++ in stack or heap?

If I declare a data structure globally in a C++ application , does it consume stack memory or heap memory ? For …

c++ memory-management stack
Memory allocation: Stack vs Heap?

I am getting confused with memory allocation basics between Stack vs Heap. As per the standard definition (things which everybody …

c# .net stack heap
Basic Recursion, Check Balanced Parenthesis

I've written software in the past that uses a stack to check for balanced equations, but now I'm asked to …

algorithm recursion stack