A single array A[1..MAXSIZE] is used to implement two stacks. The two stacks grow from opposite ends
Question:
A single array A[1..MAXSIZE] is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables top1 and top2 (topl< top 2) point to the location of the topmost element in each of the stacks. If the space is to be used efficiently, the condition for “stack full” is (GATE CS 2004)
A. (top1 = MAXSIZE/2) and (top2 = MAXSIZE/2+1)
B. top1 + top2 = MAXSIZE
C. (top1= MAXSIZE/2) or (top2 = MAXSIZE)
D. top1= top2 -1
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 0% (1 review)
D Explanation If we want to use space efficiently then t...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Data Structures Using C A Practical Approach For Beginners
ISBN: 9781000470741
1st Edition
Authors: Amol M Jagtap, Ajit S Mali
Question Posted:
Students also viewed these Computer science questions
-
A ball is released from rest at the left of the metal track shown here. Assume it has only enough friction to roll, but not to lessen its speed. Rank these quantities from greatest to least at each...
-
The balance sheet of Sound Designs reports total assets of $750,000 and $800,000 at the beginning and end of the year, respectively. Sales revenues are $1.5 million ($1.2 million in the previous...
-
A garment manufacturer produces various types of casual wears, including T-shirts, trousers, and shorts. The company has 24 direct labour employees. All 24 employees are skilled workers to produce...
-
Lombard Ltd has been offered a contract for which there is available production capacity. The contract is for 20,000 identical items, manufactured by an intricate assembly operation, to be produced...
-
Determination of the density of a fluid has many important applications. A car battery contains sulfuric acid, for which density is a measure of concentration. For the battery to function properly,...
-
Question b). Solve symbolic expressions for the lengths N 12o and N 23o of the rope parts in the situation where no loads effect on the rope.
-
Ernst & Young, LLP is the independent public accountant for AMR Corporation, the parent company of American Airlines and American Eagle. In February 2013 AMR and US Airways Group announced the two...
-
Below are various resources and activities for a social services agency that helps homeless people get housing. Required Indicate whether each of the following are likely to be unit-level or...
-
Computer Service and Repair was started five years ago by two college roommates. The company s comparative balance sheets and income statement are presented below, along with additional information....
-
Which one of the following is an application of stack data structure? A. Implement recursion B. Towers of Hanoi problems C. Arithmetic expression evaluation D. All of the above
-
Stack cannot be used to A. Implement recursion B. Arithmetic expression evaluation C. Parsing or syntax analysis D. In CPU scheduling and disk scheduling.
-
Consider a variant of the k-bit key and lock scheme described for memory protection whereby a process can access memory blocks for which every bit position set to 1 within the lock is also set to 1...
-
Aluminum is often melted down for recycling purposes. Assuming 1 kg of aluminum is at room temperature, what is the minimum amount of heat needed to melt it to a liquid? The specific heat capacity of...
-
You have taken over the Canadian government. As the Dictator, you took on yourself to end the destruction of the environment by your citizens. As a dictator , you are no longer limited by the...
-
As we drill down into the rocks of Earth's crust, the temperature typically increases by 3.0 C for every 100 m of depth. Oil wells can be drilled to depths of 1790 m. If water is pumped into the...
-
2. The longest banana split ever made was 7.320 km long (needless to say, more than one banana was used). If an archer were to shoot an arrow horizontally from the top of Mount Everest, which is...
-
From I robot this film demonstrated some of the effects of automation on society , with robots taking many of the tasks previously completed by humans . A recently published paper ( August , 2020 )...
-
Each of the following items must be considered in preparing a statement of cash flows (indirect method) for Turbulent Indigo Inc. for the year ended December 31, 2014. a) Plant assets that had cost...
-
Solve each equation. x 3 - 6x 2 = -8x
-
Explain the changes that would have to be made to the program of Code Fragment 3.8 so that it could perform the Caesar cipher for messages that are written in an alphabet-based language other than...
-
The removeFirst method of the SinglyLinkedList class includes a special case to reset the tail field to null when deleting the last node of a list (see lines 51 and 52 of Code Fragment 3.15). What...
-
Describe a method for finding the middle node of a doubly linked list with header and trailer sentinels by link hopping, and without relying on explicit knowledge of the size of the list. In the case...
-
Q1)"The successes or failures of the financial assets we purchase depend on the performance of the underlying real asset" - explain this statement with examples. Q2)Evaluate the informational and...
-
Mark received a gross salary of 90000. His net salary was $62744 after the deduction of $20000 in income tax, 3754 in cpp with enhanced cpp credit base, 1002 EI and 2500 in RPP. the company also...
-
The following questions needs to be done with the help of case study below: Mike, a recent college graduate, opened a chequing account with a local bank. He asked numerous questions before deciding...
Study smarter with the SolutionInn App