TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Use Prolog to specify fitness function in a genetic programming context?

3 pointsby 2ro5 months ago
Why not use Prolog to specify the fitness function in a genetic programming context?

1 comment

thomascountz5 months ago
Performance (fitness functions are usually high-volume&#x2F;CPU intensive operations), state management (managing mutable state isn&#x27;t Prolog&#x27;s strong suit), and integration (you&#x27;ll have to set up communication between whatever language&#x2F;framework you&#x27;re using and Prolog).<p>More generally, if you could completely specify what makes a solution &quot;fit&quot; using logic, you could just ask Prolog to find a solution that satisfies those predicates. The search would then be handled by Prolog&#x27;s built-in resolution and backtracking mechanisms rather than needing a GA.<p>Do you have a specific type of problem in mind?
评论 #42528818 未加载