Customer Service Chat
Get quote & make Payment
Minimum Shelf, C/C++ Programming
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a C++ program that finds the minimum total number of shelves, including the initial one required for this loading process.
Posted Date: 9/1/2012 2:51:44 AM | Location : United States
Ask an Expert
Minimum Shelf, Assignment Help, Ask Question on Minimum Shelf, Get Answer, Expert's Help, Minimum Shelf Discussions
Write discussion on Minimum Shelf
Your posts are moderated
Write your message here..
Pebble merchant, simple coding for pebble merchant..
simple coding for pebble merchant..
C code for implementation on binary heap, what is binary heap ? what is the...
what is binary heap ? what is the c code for the implementation for the binary heap
Define advantages of multi file program, Define Advantages of Multi File Pr...
Define Advantages of Multi File Program? The main merits of spreading a program across several files are: • Teams of programmers able to work on programs. Every programmer w
Should one design a classes from the outside, Should one design a classes f...
Should one design a classes from the outside (interfaces first) or inside (data first)? A: From the outside. A superior interface provides a simplified view which is express
What do you signify by stack unwinding?, A: this is a procedure during exce...
A: this is a procedure during exception handling while the destructor is called for all local objects in the stack among the place where the exception was thrown & where this is ca
How, how to program?
how to program?
Developing programs in the c++ programming language., I. COURSE DESCRIPTION...
I. COURSE DESCRIPTION Develops a working knowledge of object-oriented concepts in areas of classes, inheritance, data structures, error handling, templates and file processing.
Array of pointers, To write a program to use different levels of array of p...
To write a program to use different levels of array of pointer to pointer & display the output as 1 1 1 2 2 2 3 3 3
What is b-tree, B-tree: A B-tree is an also called balanced m-way tree. A ...
B-tree: A B-tree is an also called balanced m-way tree. A node of the tree may have many records or key and pointers to children. It is also called as the balanced sort tree. It s
Explain the class invariant, Explain the class invariant. - It's a cond...
Explain the class invariant. - It's a condition that ensures correct working of a class and defines all the valid states for an object. - When an object is created class inv
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
IT Courses and Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.