stack algorithm and program

Evaluate the unique scholarly perspectives found in your research and describe the validity and reliability of the results presented.For your initial post, choose one of the following topics in the area of childhood development to research and discuss:
April 14, 2021
ot in healthcare why start implementing now
April 14, 2021

stack algorithm and program

Psodocode and stuff

Algorithm:

Propose a data structure that supports the stack operations PUSH, POP, and a third operation FIND_MIN which returns the smallest element in the stack (does not delete the element). All three operations should run in O(1) worst case time. Write algorithms for the three operations. Provide an example (with actual numbers) to show how each algorithm works.

Program:

Stack for checking Balanced Parentheses, Brackets, and Braces In this assignment, you are using Sequential List (Array) to implement the Stack, with Push and Pop operation. You need to write your own Push and Pop operations (and any other operations that you might need). Use your Stack to match balanced parentheses, brackets, and braces. For example, input string ”{ ( [ ] ) [ ( ) ] } should return TRUE, and “( ( [ ] [ ) { } )” should return FALSE. I suggest implementing this by creating a Stack, pushing a (or [or {onto the stack whenever one of those characters is seen, and popping it off when the corresponding closing character is seen. If the wrong character is at the top of the stack, the parentheses do not match, and the program should return false. Test your program with several inputs, to cover balanced and unbalance cases. Use simple as well as complex parenthesized string of (, {, and [ . Use appropriate error messages; stack-full, stack-empty, and so on. Print the string and say if it is balanced or unbalanced.

when we ask for Algorithm, please provide algorithm, not a program.

Explain a little bit more on the time complexity of the algorithm, not just O(n) or O(nlogn).

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

Buy Custom Nursing Papers