I'm about to start writing a genetic algorithm program which will be able to find the highest/lowest/whatever else values of variables required for an equation, and have come upon a point about which I am uncertain. I do not know whether I should store and work upon the values as binary or decimal. If, for example, I had 10 variables of a value between 0 and 31, would it be better to store this as 50 individual alleles (1 bit per allele) or 10 alleles (5 bits per allele)?
fatnickc
7
Newbie Poster
Recommended Answers
Jump to PostDo whatever is easiest to manipulate the data with.
Jump to PostI'm about to start writing a genetic algorithm program which will be able to find the highest/lowest/whatever else values of variables required for an equation, and have come upon a point about which I am uncertain. I do not know whether I should store and work upon the values as …
All 6 Replies
iamthwee
Rashakil Fol
978
Super Senior Demiposter
Team Colleague
fatnickc
7
Newbie Poster
ahyeek
0
Newbie Poster
MosaicFuneral
812
Nearly a Posting Virtuoso
fatnickc
7
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.