Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6592135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:30:56+00:00 2026-05-25T17:30:56+00:00

So, since the answer to this basically said that I really should look into

  • 0

So, since the answer to this basically said that I really should look into encoding the genes of my creatures*, which I did!

So, I created the following neat little (byte[]-) structure:

Gene = { X, X, X, X, Y, Y, Y, Y, Z, Z, Z, Z }

Where

  • X = Represents a certain trait in a creature.

  • Y = These blocks controls how, if and when crossovers and mutation will happen (16 possible values, I think that should be more than enough!)

  • Z = The length of the strand (basically, this is for future builds, where I want to let the evolution control even the length of the entire strand).

(So Z and Y can be thought of as META-information)

(Before you ask, yes, that’s a 12-byte 🙂 )

My question to you are as follows:

How would I connect these the characteristics of each ‘creature’?

Basically, I see it this way (and this will probably be how I will implement it):
Each ‘creature’ can run around, eat and breed, basic stuff. I don’t think (I sure don’t hope so at least!) I will need a fitness-function per se, but I hope evolution, as in the race for food, partners and space will drive the creatures to evolution.

Is this view wrong? Would it be easier (do note, I’m a programmer, not a mathematician!) to look at it as one big graph and "simply" take it from there?

Or, tl;dr: Can you point me in the right direction to articles, studies and/or examples of implementation of this?

(Even more tl;dr; How do I translate a Gene to, say for example the Length of a leg?)

*Read the question, I’m building a sort of simulator.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:30:57+00:00Added an answer on May 25, 2026 at 5:30 pm

    I haven’t seen metainformation like your Y and Z in a genetic algorithm’s gene sequence before (in my limited exposure to the technique). Is your genetic algorithm a nontraditional one?

    How many traits does a creature have? If your X’s are representing the values of traits, and a gene sequence can have variable length (Z), then what happens if there are not enough X’s defined for all the traits? What happens if there are more X’s than the traits you have for a creature?

    • Z should be a fixed value.
    • Y should be parameters of your genetic evolution routine
    • there should be an X (or set of X) for every trait of a creature (no more, no less)

    If the number of X’s you have is fixed, then for each trait, you assign a particular index (or set of indexes) to represent that trait.

    EDIT:

    You should determine the encoding of your traits that X should represent: for length of a leg, e.g., you could have a few bytes represent the leg-length. If bytes 3-5 were the length of the leg, you could represent the length in your X-vector like this:

    [...101......]

    Where the dots are other trait representations. The above snippet represents a leg length of 5 (whatever that means). The below genome still has 5 as the leg length, but other traits filled out as well.

    [001101011011]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question came to mind after reading the answer to this question; which basically
since I couldn't find an answer to this question I researched a bit further
I'm really stuck on this one... Basically, I'm trying to make 2 pages always
Basically, I want this: The highest voted answer 3 vote The others answer 1
I have a question, and I'm going to tag this subjective since that's what
I haven't found an answer to this, and since I'm pretty new to JS,
This is my second attempt to get this answer since I messed it up
Basically, what the title says. I have several properties that combine together to really
A quick question, for a quick answer (since I'm not finding any): Is there
Since I've gotten no answer at all to my question Is there an alternative

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.