So there are 4 features a bee can have-head, body, horns and wings. In my webpage there will be two bees shown and I need to have all possibilities. (Both bees need to be sharing either 1,2,3,4, or no feature) Can someone help me... Is there some software that would help me compute this? X__x
You need us to write a code snippet or just do the math?
I don't understand what you are trying compute. The 4 features that there are, how many of each type are there? Are you trying to find out how many different bees there are?
@butterflyprincess
Well do you know some easy way to compute the code...
some software... Or do you know how many shared features there will be..
Any GUI? Any specific language in mind?
What do you mean?
And as @mathstudent55 said, we need more information.
See I am writing a JavaScript and I need to do all the possibilities
Yeah, that's the language. I'm asking if it includes graphics or just cmd.
@dumbsearch2
I believe cmd?
I just would like to know if there is a simple way to figure this out
or some way in using combinations to help me figure out all the possibilities
@butterflyprincess There are ways, but we do need more information like if the bees will be vectoring or static or if they will have graphics that the viewer can see etc.
Yes there will be graphics the viewer will see!
That's what I asked before and you said no.
oh sorry
cmd is just command line, GUI is with graphics.
oh sorry u.u
@butterflyprincess How much coding do you know?
A little D:
I am a beginner so they gave me this task
We do need more info.
mhm like what exactly?
Like everything about the project?
If there are a number of different heads. b number of different bodies, c number of different horns, and d number of different wings, there are a * b * c * d different looking bees.
Right so it looks like this [head,body,horns,wings] an example of one bug is [1 0 0 1]
If you number things from 0 on up, yes, if you start at 1, then an example could be [1 1 1 1]
So no more coding.|dw:1374642193854:dw| Okay, good luck then.
right yes! @mathstudent55
thanks @primeralph
I don't quite understand the question... what exactly do you need help with? :-)
@dumbsearch2 writing all the possibilities D:
for what?
for the features the bugs may share! Ineed to figure out all the possibilities 2 bugs can share either 1,2,3,4 or no features!
by math? or code?
Both D: @dumbsearch2
if you know any way please show me because I really need to do this~
You know the algorithm for the code...and need help with coding?
yes please!
So there are 4 features to choose between 2 bees for No feature common umber of ways 4C0 For 1 feature common number of ways 4C1 For 2 feature common number of ways 4C2 For 3 feature common number of ways 4C3 For 4 feature common number of ways 4C4
you can use the formula for solving nCr to move forward. Hope this helps!
oh so I can use combinations.... @ankit042
Yeah let me explain...so for having one feature common in two birds You have to choose 1 feature from the four given feature which is 4C1. You know how to code this?
OH alright & what do you mean by that exactly..? @ankit042
I am not sure which part is not clear?
now you know how to code the algorithm?
you mean to the JavaScript? right now I just need to make an excel spreadsheet on ALL the possibilities !
Great! hope this helps
thank you!!
You are welcome!
Join our real-time social learning platform and learn together with your friends!