Comments (4)
@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.
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.
@shogg have you been able to build a collage after that? :)
from practice-go.
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)
- Not all permutations are presented for the short-hash HOT 1
- Skip not solved exercises in travis tests HOT 1
- Create script to create new challenge from pre-defined template
- More test cases for functionfrequency challenge
- Support multiple solutions HOT 2
- Warriors challenge HOT 1
- Exclude not resolved challenges in TravisCI
- Snowflakes
- nodedegree: minor simplifications HOT 4
- node_degree challenge
- lastlettergame - tests only 1 possible solution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from practice-go.