Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Skyrunner

Pages: 1 ... 19 20 [21] 22 23 ... 762
301
Oh well.

Suppose we have a computing system including N independent processors, threads, devices, executors etc (set P = {p_1,...,p_N}). There are also M tasks (set T = {t_1,...,t_M}) being passed in the said computing system to be handled. We know how much time (or any other meaningful resource in a particular case) is needed to process a given t_i from T, some tau(t_i), by either processor, that is each task can be executed by each of the processors in the same amount of time, and note that processors can't delegate some of the tasks assigned to them to any other processor. The objective is to find such schedule that the total amount of time to execute all tasks on either processor would be minimal.

A schedule is a mapping A_R : T -> P such that if A_R(t_i) = p_j, task t_i from T is said to be assigned to processor p_j from P. A schedule can be also defined as a partition of set T into N disjunctive subsets.

The criterium (that is objective function) to determine how good the outcoming schedule (and thus the algorithm we've used) is is the following: f_r = max f_j (1<=j<=n) -> min, where f_j = tau(t_j_1) + ... + tau(t_j_k) stands for how much time it requires for processor p_j to execute all the tasks (k' tasks alltogether) assigned to it.

This definitely doesn't sound related the cron/crontab utility on linux, which just executes things at a given time. As for the actual algorithm, my instinct (which is fairly rusty for algorithmic problems) tells me that this is sorta a knapsack problem.

302
well, given M tasks that can be executed in the same amount of time no matter what, and N processors, it seems all you'd need to do is schedule them in a round-robin way. Are you sure you presented the problem correctly?

Also, Wikipedia has a bunch of examples of scheduling algorithms. Asking your teacher is a surefire way too.

303
I am mildly amused that my random inefficient idea turns out to be a not bad way to code something. I do think that the chief downside is slow removals of items, though.

304
you could even store keys and values in two arrays and search for the position of the key, then return the value.

it'd be slow and defeat the purpose, yes, but it can still obey the dictionary interface, I think.

305
Could be asking what kind of data structure to store the key-item relationship behind the scenes of the abstract data type "dictionary."

306
Forum Games and Roleplaying / Re: D&D 3.5e: The Librarian's Tomb
« on: April 30, 2016, 03:48:57 am »
No game.

307
Other Games / Re: Factorio - Factory building game
« on: April 28, 2016, 03:10:48 am »
Gah. I haven't used Lightwave in forever. But I feel like trying to make a cannon turret sprite.



Not too terrible for just basic LW textures. :P

edit: Having an inordinate amount of trouble trying to create transparent GIFs for some reason. :/


I don't think you can actually make transparent gifs, can you?

308
Forum Games and Roleplaying / Re: D&D 3.5e: The Librarian's Tomb
« on: April 23, 2016, 08:08:59 am »
Skipping next session could be an option too...

Edit: Skipping I guess, yeah :P Who knew that Librarian's Tomb would be a biweekly game

309
Forum Games and Roleplaying / Re: D&D 3.5e: The Librarian's Tomb
« on: April 23, 2016, 07:40:40 am »
A shame :(



The party commits grand theft arcana vs a gigantic sphere of necromatic doom, then subsequently triggers an alarm-spider and destroys many many perfectly fine automatons. Also, a bunch of scrolls!

2187 XP! And BFOW should take that XP too :v




doooom


Incidentally, BFOW has no charges left on his healing belt, but it went for a good cause--saved Bernard. I hope that's ok with ya.

Also, we didn't actually involve BFOW in this session, just conveniently assume he wasn't around.

310
Forum Games and Roleplaying / Re: D&D 3.5e: The Librarian's Tomb
« on: April 23, 2016, 02:47:20 am »
I may also not be here for May 7th--I'm going to a hackathon in Shenzhen for the weekend. I might have time from 5 to 8 though, since I imagine I can just retire to my hotel room.

311
Other Games / Re: Factorio - Factory building game
« on: April 22, 2016, 12:39:00 am »
Different skill levels best not design the same base.

312
If you use the mod that makes probes have to have relayed wire contact, the higher tier comms items are definitely all different and useful. Dishes are direction and the longer the range the smaller the arc, so you can't just slap the highest tier on everything because if you're on Mun or Minus to Kerbin, it's kinda useless :P The antenna ones are all-directions but quite short range, the highest tier one covers all of Kerbin's gravity field, I think.

edit: I'm kinda disappointed that they decided the stock antenna system will entirely remove the aspect of communications relay management :(

313
General Discussion / Re: Things that made you sad today thread.
« on: April 20, 2016, 08:47:24 am »
I like Burger King's fries the best. They are the thickest on the market ... here in China, at least.

314
Other Games / Re: Factorio - Factory building game
« on: April 20, 2016, 05:00:15 am »
That's pretty cool!

315
Other Games / Re: Factorio - Factory building game
« on: April 20, 2016, 03:30:55 am »
I've started thinking of Factorio setups in my idle time. I suppose that's not a good sign.

I also suppose using train cargo wagons as a key component of a multi-lane sorting/splitting mechanism is not exactly a new idea.

I.e. with each inserter being able to move 3 items container to container, a single wagon has enough spaces (sitting horizontal) to have 4 fast inserters on input, and 12 smart inserters on output, effectively filling up 6 output lanes. You also need 12 fast inserters on input to what the 4 fast inserters are taking from, which... can be two more cargo wagons, sitting perpendicular to the first one. Side-by-side they have just enough neighboring tiles to fit 12 inserters (they are 5 tall and 4 wide together, with one 4 side taken up by output, and one tile on the bottom will have to have the belt being used by one of the outputs on the horizontal wagon).

I have no idea how useful this could actually be, but hey. Maybe for offloading actual mixed-load trains. :P

Some also use them as big filterable chests in compact factories. You can put everything you need and even intermediate products and the filter will reserve space so it can't just fill with one thing and jam.

How do you make sure the train isn't fully emptied? what is this "filter" thing?

Pages: 1 ... 19 20 [21] 22 23 ... 762