Customer Service Chat
Get quote & make Payment
minimumshelf program in c, Computer Engineering
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 program that finds the minimum total number of shelves, including the initial one required for this loading process.
Posted Date: 8/30/2012 4:23:01 AM | Location : United States
Ask an Expert
minimumshelf program in c, Assignment Help, Ask Question on minimumshelf program in c, Get Answer, Expert's Help, minimumshelf program in c Discussions
Write discussion on minimumshelf program in c
Your posts are moderated
Write your message here..
Production-centered virtual manufacturing, Production-Centered Virtual Manu...
Production-Centered Virtual Manufacturing It utilizes simulation ability to manufacturing process models along with the purpose of permitting inexpensive, fast evaluation of va
Explain bitwise left shift and right shift operators, Bitwise Left Shift an...
Bitwise Left Shift and Right Shift Operators: > shift-expression : additive-expression shift-expression > additive-expression The bitwise shift operators shift their
Hat are the advantages and disadvantages of hardwired, What are the advanta...
What are the advantages and disadvantages of hardwired and micro programmed control? Advantages of hardwired control i. Operate at high speed ii Each state of this coun
How to write good assembly programs, Preparation of writing the program ...
Preparation of writing the program 1. Write an algorithm for your program closer to assembly language. For instance the algorithm for preceding program will be: get NUM1
Write a program for comparing two strings, Q. Write a program for comparing...
Q. Write a program for comparing two strings? Let's write a program for comparing two strings. Determine the following piece of code that has been written in C to compare two s
What is electronic payment system, What is electronic payment system? E...
What is electronic payment system? Electronic payment systems are alternative cash credit payment methods using various electronic technologies to pay for products and services
Command line argument value, Make a console application to show different m...
Make a console application to show different messages depending on the command line argument value. Use Select-case statements.(same to switch block)
How to use messages in lists, How to use messages in lists? ABAP/4 pe...
How to use messages in lists? ABAP/4 permits you to react to incorrect or doubtful user input by displaying messages that influence the program flow depending on how serious
Determine the workarounds in multiple inheritances, What are several issues...
What are several issues for selecting best workarounds in multiple inheritances? Some restrictions methods are used. Use two approaches of delegations, which is an implementati
Telnet services, java program for implementation of telnet services
java program for implementation of telnet services
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
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.