Click here to Skip to main content
15,905,612 members
Home / Discussions / C#
   

C#

 
GeneralAlgorithm help Pin
OmegaSupreme18-Nov-03 12:03
OmegaSupreme18-Nov-03 12:03 
GeneralRe: Algorithm help Pin
Christian Graus18-Nov-03 13:41
protectorChristian Graus18-Nov-03 13:41 
GeneralRe: Algorithm help Pin
OmegaSupreme18-Nov-03 14:32
OmegaSupreme18-Nov-03 14:32 
GeneralRe: Algorithm help Pin
Aryo Handono19-Nov-03 1:10
professionalAryo Handono19-Nov-03 1:10 
GeneralRe: Algorithm help Pin
OmegaSupreme19-Nov-03 2:18
OmegaSupreme19-Nov-03 2:18 
GeneralRe: Algorithm help Pin
Aryo Handono19-Nov-03 2:27
professionalAryo Handono19-Nov-03 2:27 
GeneralRe: Algorithm help Pin
OmegaSupreme19-Nov-03 3:51
OmegaSupreme19-Nov-03 3:51 
GeneralRe: Algorithm help Pin
NikV22-Nov-03 1:46
NikV22-Nov-03 1:46 
hi,

i was onced asked to do a similar project for the radio station i volunteered for, and i can promise you there is no easy solution for scheduling problems, and i have a degree in applied mathematics!

the main problem you face is that station managers/advertising managers want to have very specific rules governing the way ads are played, and telling them that your mathematical algorithm won't let them schedule an ad 2 times a day, except on a full moon which happens to be a sunday they want it played 6 times, is just not going to cut it... get my drift?

having spent many years working on a payroll system that required the programming of awards in much the same way that an ad scheduler needs to work, what i have worked out is that the simpler way to deal with the problem (albeit not the most mathematically asthetic way) is to build a 'rules' database that associates a series of rules to a particular ad...

effectively you are building a mini-expert system that uses rule-based and case-based reasoning (all of which can live in your database)...

particularly, the approach i have seen before is to use a self-referential table that effectively 'parses' the rules associated with the employment award and the employees to whom it applied - an elegant but extraordinarily difficult algorithm to maintain...

my approach (had i continued with the project (i am too old to hack code for nothing and wait for royalties)) was to build a 'vocabulary' which associated key words with particular meanings that could be applied in the system... this would allow the station manager to come up with any weird and wacky combination that they manage to dream up (that would normally haunt programmers in their worst nightmares) and leave me to my peace and quiet...

if this works for you, would love to know about it...

cheers and good luck
nik

Nik Vogiatzis
PhD Candidate: University of South Australia
GeneralRe: Algorithm help Pin
OmegaSupreme23-Nov-03 12:15
OmegaSupreme23-Nov-03 12:15 
Generalcontrol events Pin
udaan200318-Nov-03 10:43
udaan200318-Nov-03 10:43 
GeneralResize of custom control Pin
udaan200318-Nov-03 9:55
udaan200318-Nov-03 9:55 
GeneralColor in TextBoxes Pin
obelisk2918-Nov-03 9:33
obelisk2918-Nov-03 9:33 
GeneralRe: Color in TextBoxes Pin
Daniel M. Edwards18-Nov-03 12:00
Daniel M. Edwards18-Nov-03 12:00 
GeneralCrystal Reports Pin
scarabey18-Nov-03 9:24
scarabey18-Nov-03 9:24 
GeneralRe: Crystal Reports Pin
gokselm20-Nov-03 10:57
gokselm20-Nov-03 10:57 
GeneralWindows forms and Shut down! Pin
Utku KAYA18-Nov-03 7:53
Utku KAYA18-Nov-03 7:53 
Generalno DataSource property for CheckedListBox Pin
zuhx18-Nov-03 7:02
zuhx18-Nov-03 7:02 
GeneralRe: no DataSource property for CheckedListBox Pin
Heath Stewart18-Nov-03 8:36
protectorHeath Stewart18-Nov-03 8:36 
GeneralStreamReader.ReadLine locking thread Pin
Anonymous18-Nov-03 6:51
Anonymous18-Nov-03 6:51 
GeneralRe: StreamReader.ReadLine locking thread Pin
Kentamanos18-Nov-03 8:23
Kentamanos18-Nov-03 8:23 
GeneralRe: StreamReader.ReadLine locking thread Pin
Anonymous18-Nov-03 11:06
Anonymous18-Nov-03 11:06 
GeneralRe: StreamReader.ReadLine locking thread Pin
Kentamanos18-Nov-03 11:46
Kentamanos18-Nov-03 11:46 
GeneralRe: StreamReader.ReadLine locking thread Pin
Anonymous18-Nov-03 22:28
Anonymous18-Nov-03 22:28 
GeneralRe: StreamReader.ReadLine locking thread Pin
Kentamanos19-Nov-03 5:52
Kentamanos19-Nov-03 5:52 
GeneralRe: StreamReader.ReadLine locking thread Pin
Kentamanos19-Nov-03 6:53
Kentamanos19-Nov-03 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.