Grasshopper

algorithmic modeling for Rhino

Hi,

 

It would be great if you could share your experience and bring your brainpower to solve this problem.

I would like to generate all permutations of a collection of numbers.

 

Collection:
0, 1, 2

Permutations:
0, 1, 2
0, 2, 1
1, 0, 2
1, 2, 0
2, 0, 1
2, 1, 0

Is it possible to make without coding? Has anyone tried this? If no, I found examples writen on C#, can anyone help to adapt it to grasshopper?

Views: 2928

Replies to This Discussion

Gracias, Daniel. It is really imazing tool.

Can you tell me permutations can be solved without iterations using brute force algorithm?

Thank you, Mateusz. It is the perfect solution.

Hi Mateusz...does it make sense also with 6 number?

1,2,3,4,5,6
am I going to get all the possible combination?

Yeah, it's a fully scaleable approach, just keep adding more inputs to the CrossRef components.

Do note that the number of permutation is n!, so 6=720, 7=5040, 8=40320, and it just keeps going up faster and faster.

even permutation?

Hi,

I have a similar issue but with much more inputs. My goal is to ask galapagos to find the best permutation among the set of all possible permutations.

I would like to have a slider with the amount of possible permutations as genome. The problem is that it will not be possible to compute all the possible permutations and then pick one of them with the slider (this would take to long to compute).

I place in attachment a simplified definition to present the problem, but for information my goal is to place elements with fix various lengths in the best location in a geometric model.

Attachments:

hacking services

WHO needs money??
need travel VISA??
PAYPAL AND BANK TRANSFER AVAILABLE
flight ticket available all destinations
ATM clone cards ready to ship all country
western union services back in the game
online shopping, ask me how it works
original FAKE or REAL id, dl, pp, skul docs available for all countries.

CONTACT ME NOW AT

watsap @0014242429194
icq @745215892
inbox @cleanhackdeals at gmail dot com

NB: dont waste your time to contact for fb, ig or twitter hack... few serious buyers needed

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service