Интересная задачка.
От: unkis  
Дата: 19.10.15 18:28
Оценка:
Народ привет,

А вы как думаете, сколько кофе автоматов в следующей задачки?


Model a system that allows programmers to gat coffee and of course pay for it.

Programmers will do the following to get coffee:
• First gather information regarding which types of coffee are available (espresso, latte macchiato or cappuccino) and pick their personal favorite. This will take 0.5 seconds.
• Second pay the coffee they want at the cash register using cash or credit. This will take 0.25 second for credit and 0.5 seconds for cash payments.
• Third find a coffee machine and pick the type of coffee they paid for


The system allows:
• 10 programmers to pick their favorite type of coffee at the same time
• 5 programmers to pay their coffee at the same time
• 2 programmers to get their paid coffee from the machine at the same time


A programmer will do the following to get coffee from a coffee machine:
• find a cup (0.25 seconds)
• put it under the outlet (0.25 seconds)
• pick the type of coffee the programmer paid (0.25 seconds)
• wait till the machine is finished filling the cup (This will take 0.25 second for espresso, 0.5 seconds for latte macchiato and 0.75 seconds for cappuccino.)
• when the machine is done the programmer will take her cup and leave (0.25 seconds)

Measure the following things using 100 programmers:
• how much coffee is sold (total and per payment type)
• how much coffee is dispensed by each coffee machine (total and per type of coffee)
• how much time does the average programmer spend getting her coffee
• how long did it take the fastest and the slowest programmer to get her coffee


Challenge it with 200, 500 and 1000 programmers.
Re: Интересная задачка.
От: Кодт Россия  
Дата: 20.10.15 12:23
Оценка:
Здравствуйте, unkis, Вы писали:

U>А вы как думаете, сколько кофе автоматов в следующей задачки?


U>Programmers will do the following to get coffee:

U>• First gather information regarding which types of coffee are available (espresso, latte macchiato or cappuccino) and pick their personal favorite. This will take 0.5 seconds.
U>• Second pay the coffee they want at the cash register using cash or credit. This will take 0.25 second for credit and 0.5 seconds for cash payments.
U>• Third find a coffee machine and pick the type of coffee they paid for

Из текста неочевидно, является ли информационный стенд, селектор, касса и кофеварка одним устройством, или же это отдельные аппараты, объединённые в сеть.
Вот из-за этого оборота: "find a coffee machine". Чего там искать, спрашивается?!

Но допустим, что это один большой ящик.

Дальше, непонятно: этот ящик умеет работать в режиме конвеера (вай, какой продвинутый ящик!), или строго в пакетном режиме: выбрал-заплатил-сварил.

U>The system allows:

U>• 10 programmers to pick their favorite type of coffee at the same time
U>• 5 programmers to pay their coffee at the same time
U>• 2 programmers to get their paid coffee from the machine at the same time

Поскольку 10 человек одновременно могут тыкать в кнопки выбора, — значит, должно быть 10 пультов, то есть, 10 аппаратов.

Или эта система массового обслуживания позволяет
— принимать 10 заявок в 0.5 секунды
— принимать 5 оплат в 0.375 секунды
— варить 2 чашки кофе за какое-то там время, указанное ниже?
И слова про "at same time" — это просто оборот речи?
Перекуём баги на фичи!
Re[2]: Интересная задачка.
От: Sinix  
Дата: 20.10.15 12:40
Оценка:
Здравствуйте, Кодт, Вы писали:

К>И слова про "at same time" — это просто оборот речи?

Там сфероконичные автоматы. Это задачка из учебника-аналога "Теория массового обслуживания" от Ивченко и кто-то там.
В общем, вот это и далее по тексту.
Re[3]: Интересная задачка.
От: T4r4sB Россия  
Дата: 20.10.15 12:49
Оценка:
Здравствуйте, Sinix, Вы писали:

S> Это задачка из учебника-аналога "Теория массового обслуживания" от Ивченко


Тогда почему вместо того, чтобы видеть оригинал, мы вынуждены переводить перевод?
Re[4]: Интересная задачка.
От: Sinix  
Дата: 20.10.15 13:01
Оценка:
Здравствуйте, T4r4sB, Вы писали:


S>> Это задачка из учебника-аналога "Теория массового обслуживания" от Ивченко

TB>Тогда почему вместо того, чтобы видеть оригинал, мы вынуждены переводить перевод?

Кэп: может быть потому что топикстартеру попался английский учебник?.

И да, аналог != перевод оригинала
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.