Giter VIP home page Giter VIP logo

htpga's Introduction

HTPGA

GA for solving HTP

Concept

concept

  • NxN개 육각형의 마름모꼴 모양
  • 1차원 배열 세 개 형태의 표현형
    • 꼭짓점에 맞닿은 육각형의 개수에 따라 Level(Contact Level)로 분할
    • 육각형과 맵핑되어 Fitness 계산/지역성을 반영한 변이 연산 등에 활용

Class description

VerticeSpace

  • 지수귀문도 꼭짓점의 실제 값들을 세 개의 일차원 배열로 담고 있는 클래스
  • 값 get/set, swap 등의 연산 및 부가정보를 위한 속성들
  • Verification(값들이 순열의 성질을 유지하는지)

Hexagon

  • VerticeSpace의 각각 값들의 위치와 맵핑되는 6개의 튜플을 담고 있는 육각형 자료구조

    • 각 튜플은 (level, position)으로 VerticeSpace의 element에 접근하는 포인터 역할을 함
  • Tortoise 클래스에 의해 이차원 배열 형태로 사용됨

  • 위치 정보 튜플의 get/set(set은 초기 tortoise 구성에만 사용) 및 이차원배열에서의 좌표 정보

Tortoise

  • length를 파라미터로 받아 length*length 크기의 VerticesSpace와 대응되는 Hexagon 클래스들을 구성하는 클래스
  • 지역적으로 인접한 값들, 육각형 값의 합/평균/분산 등 유전 연산을 돕는 operation 제공

class

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.