please answer these two questions properly about Stack data structure
Q(1) What are their respective logical and physical / storage structures .Q(2) At least one application example combining data structure and algorithm should be given.
Q(1). Logical storage structures:
Logical data structure or a logical storage sructure are data structures that can be built using physical storage structure like array and linkedlist. Logical storage structures denotes content, context of the data.
For example: Qeue, stack, tree , hash table etc.
Physical storage structures:
Physical storage structures or physical data structures are built based on physical aspects of the data .Physical storage structure shows the format and memory location of the data stored in a memory.
for example: Array, Linkedlist.
Q(2).Application example of a stack and its algorithm:
Stacks are most commonly used in evaluation of postfix,infix and prefix of an expression.
lets consider evaluating postfix of an expression using stack as an example
-To evaluate postfix of an expression, the expression us scanned from left to right and if an operand is found it is pushed into the stack.
-If the element is an operator two elements are popped out of stack.
-Repeat it till the end of the expression.
ALGORITHM:
please answer these two questions properly about Stack data structure Q(1) What are their respective logical...
Queue data structure: please answer these two question properly Q(1) What are their respective logical and physical / storage structures .Q(2) At least one application example combining data structure and algorithm should be given.
Binary tree please answer these two question properly about binary tree Q(1) What are their respective logical and physical / storage structures .Q(2) At least one application example combining data structure and algorithm should be given.
Linked list: 1) What are their respective logical and physical / storage structures .2) At least one application example combining data structure and algorithm should be given. please answer these two questions properly
i am writing thesis paper for these question (why do we need data structures? What is the relationship between data structure and algorithm? What data structures have we learned? What are their respective logical and physical / storage structures? What are their advantages and disadvantages? In which cases do they apply to (combined with time complexity analysis)? Please analyze the learned data structure one by one. At least one application example combining data structure and algorithm should be given) i...
i need an conclusion for my research thesis paper and my research paper covered these areas(why do we need data structures? What is the relationship between data structure and algorithm? What data structures have we learned? What are their respective logical and physical / storage structures? What are their advantages and disadvantages? In which cases do they apply to (combined with time complexity analysis)? Please analyze the learned data structure one by one. At least one application example combining data...
Array list, Linkedlist, Stack, Queue, binary tree, hash table What are their respective logical and physical / storage structures? i am asking this question note what are their respective logical and physical / storage structures?
Array list, linked list, Stack, Queue, Binary tree, Hash table At least one application example combining data structure and algorithm should be given.
help me answer the following questions please 1. Stack (LIFO) & its application 1. Stack overflow & underflow 2. Implementation: partially filled array & linked list 3. Applications: reverse string, backtracking Exercises: 1) Which of the following applications may use a stack? A. parentheses balancing program. B. Keeping track of local variables at run time. C. Syntax analyzer for a compiler. D. All of the above. 2) Consider the usual algorithm for determining whether a sequence of parentheses is balanced....
General Instructions In this task, answer all the following questions and complement each answer with a detailed explanation 1. Design a 0(n log n)-time algorithm that, given a set S of n integer numbers and another integer x determines whether or not there exist two elements in S whose sum is exactly x 2. A Stack data structure provides Push and Pop, the two operations to write and read data, respectively. Extend this data structure so that, in addition to...
Answer the following MCqs about Data Structures in Java: 1.If you were to build you own online video player, but you want your costumer to be able to start playing the video before its %100 downloaded. You will probably need to download the video as frames, what data structure would be the best choice to store these frames before you start displaying them to your consumer? a) Stack b)Queue 2. Consier the following code: Stack stack = new Stack(); stack.push(new...