Data structures algorithm

Concluído Postado há 7 anos Pago na entrega
Concluído Pago na entrega

1. Problem Description

Office customer wants to improve the functioning using a system of organizing the people to stop. The Office has opened more counters, each specializing on a particular issue, but can also resolve other problems. Each counter can hold more people that are sort by priority. If a man sits at a desk and has the highest priority, it is addressed first. New desks can be opened or existing ones can be closed, in which case people are redistributed equally possible. The purpose of the theme is to make a program to simulate the required system.

2. Implementation details

Every moment will be open counters N (N> = 1). Counters will be represented as a vector of length N dynamically allocated. Each stop will be assigned a double chained list representing people are waiting at the counter and which will be ordered by descending priority. If there are more people with the same priority, they will be addressed in alphabetical order. If the number of counters N changes, everyone will be arranged in a new list ordered by descending priorities or alphabetically by name, and then will be divided equally to each counter as he sees in this example. Suppose we initially open four counters (0-3), and 11 people with priorities 1 to 11, place it in the picture below

0 1 2. 3

7 10 9 11

6 5 8

4 3

2

1

Counter 0 has three people on the list, the counter 1 has 2 counter 2 has one man and counter 3 has five people in a row. If the number of counters opened changes and becomes five, then people will first sort by priority and redeployed to the new number of counters, so people with the priorities of the biggest to be the first in the list, as you can see and in the figure below:

0 1 2. 3. 4

11 10 9 8. 7

6 5 4 3 2

1

Algoritmo Programação C Programação C++ Arquitetura de software

ID do Projeto: #13442406

Sobre o projeto

21 propostas Projeto remoto Ativo em há 7 anos

Concedido a:

$60 USD em 1 dia
(11 Comentários)
3.8

21 freelancers estão ofertando em média $37 nesse trabalho

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Mais

$100 USD em 1 dia
(135 Comentários)
7.0
wangbeizou

Hello. How are you. I have read and understood the project. I have strong knowledge in Data structures and Algorithms. And I'm expert in Java ,C/C++,C#, Python ,PHP etc. I'm interested this project. So, firstly Mais

$30 USD em 1 dia
(149 Comentários)
6.3
xeathprynx

Hello, I am expert in java/c/c++/python/C# and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations Mais

$25 USD em 1 dia
(121 Comentários)
5.7
schoudhary1553

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of ex Mais

$100 USD em 1 dia
(23 Comentários)
5.2
hoangduong97

Hello, I am experienced and specialized in C/C++ and Java programming, I have experience in Android. I have taken part in many competitions, including national competition, in which I won 2nd prize. I am currently a Co Mais

$30 USD em 1 dia
(23 Comentários)
3.5
Valuesolutions

Hello, how are you? I hope you have a bright day/evening from your side. I have read the details provided, but please contact me so that we can discuss more on the project. I believe I have the required skills in this Mais

$34 USD em 1 dia
(9 Comentários)
4.8
iosif2455

A proposal has not yet been provided

$25 USD in 5 dias
(1 Comentário)
1.0
ritikjain51

I would like to do that problem as i found it easy. And i can simulate that problem. I have developed many algorithms regarding this.

$15 USD em 1 dia
(0 Comentários)
0.0
diracdelt

have programmed in computational physics algorithms in c previously. I look forward to hearing back from you.

$19 USD em 1 dia
(0 Comentários)
0.0
fb57e1f6608abfb

I have 4+ years experience in data analytics, working on small excel reporting to big DWBI reporting work. I am an expert in developing user-friendly spreadsheets for data analysis and visualization, creating interacti Mais

$30 USD in 0 dias
(0 Comentários)
0.0