Giter Club home page Giter Club logo

Comments (4)

plutov avatar plutov commented on August 26, 2024

@shogg thank you for investigation! This actually makes sense. Updated description - https://github.com/plutov/practice-go/blob/master/nasacollage/README.md

from practice-go.

shogg avatar shogg commented on August 26, 2024

I did the scraping of archivepix.html. Still not fast but works well.

It took 22 min to gather all image URLs. With the API it took four hours to collect 2400 URLs because of the request limit. And the result was not exhaustive because requests sporadically returned server errors.

from practice-go.

plutov avatar plutov commented on August 26, 2024

@shogg have you been able to build a collage after that? :)

from practice-go.

shogg avatar shogg commented on August 26, 2024

I'm working on it again since Wednesday.
I have a working algorithm that spits out best results found so far and searches on. But as I suspected, the problem is too complex to be fully searched in a reasonable time.

First idea was to limit the collage to a ground row of up to three images choosen from all images. But even that is too expensive: 8000!/(8000-3)! ~= 10^11.7 ground row variations. At the moment I'm testing with much fewer variations and some other restrictions.

PS: brute force would be to iterate variations of 11 images and check if they form a rectangle when stacked in that order: 8000!/(8000-11)! ~= 10^43 checks.

from practice-go.

Related Issues (12)

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.