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

  • Home
  • SEARCH
  • 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 172651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:12:13+00:00 2026-05-11T13:12:13+00:00

I want to use a GA to determine the optimal path from A to

  • 0

I want to use a GA to determine the optimal path from A to B, satisfying certain conditions (length, number of turns, etc.)

An example of a path is: Up 4, Left 8, Down 3, Right 3, Down 1, Left 10, Up 4, Left 1, Up 3

The problem is, I don’t really know a good way to represent information such as this in a good way for use in a GA, especially because paths have a variable length.

Does anyone have a good idea how to do something like this?

  • 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. 2026-05-11T13:12:14+00:00Added an answer on May 11, 2026 at 1:12 pm

    I’m not sure exactly what your representation problem is, so I suspect you have this question from a misunderstanding of a GA’s chromosome string. Theoretically speaking, the chromosome string does not have to be recombined explicitly on integer boundaries if you take the extra step of demarcating your individual genes, which would allow you to recombine on a gene-by-gene basis. This solves the problem of a variable-length gene, such as your ‘path’. Recombining variable-length genes is just a matter of adding another variant to the mutation method, specifically ‘use this element or nuke this element’ in addition to the standard ‘use element from A or element from B’ if your gene is breakable into discrete elements, as your path is.

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

Sidebar

Related Questions

I basically want to use the PlacardView.m and PlacardView.h from the Apple's MoveMe example,
I want to use javascript / jquery to determine if an xml file exists.
I want to use performance monitors to determine when a file is being accessed
i want use some data from a website with web service. i have a
Below is my HTML and CSS. I want to use javascript to determine when
Can I determine the number of jQuery objects on a page? I want to
I want to use ps -ef | grep keyword to determine the pid of
I want to use jQuery to determine if a link is a text link
I want to use the C++ map function, map::find , to determine if a
I'm trying to determine if SSO is what I want to use in my

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.