LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2011, 10:56 PM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Name of formula? n things out of collection of m things


I'm working through some problems in a beginners programming book. The author mentions a formula for calculating the number of ways of picking out n things from a collection of m of them:
Code:
/ m \        m!
|   | = -----------
\ n /    n! (m-n)!
But he does not give a name for the formula. Does anyone happen to know what it is called? I need to do some related research.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-22-2011, 11:11 PM   #2
yhcheang
LQ Newbie
 
Registered: Mar 2011
Distribution: Slackware
Posts: 16

Rep: Reputation: 7
I think this is related to permutation and combination of math. Refer to this link: http://www.mathsisfun.com/combinator...mutations.html
I hope it helps Good luck mate.
 
Old 07-22-2011, 11:11 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"Permutations"?

"Probability" (of n results over m tries)?

Check out these two links:

http://www.visioniasonline.com/templ...mbinations.pdf

http://boards.straightdope.com/sdmb/.../t-558067.html

'Hope that helps .. PSM
 
Old 07-22-2011, 11:30 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
The function you provide is for combinations. The name of the function (or formula as you call it) is the binomial coefficient. Us statisticians would say "m choose n" when we run across it in our daily lives. It is not a probability, but is the number of n combinations we can make from a set of m items.

For example, given the set {1, 2, 3} (i.e., m = 3), we can make three sets of 2 (i.e., n = 2). The combinations of two are {1, 2}, {1, 3}, and {2, 3}.

This is different from permutations which are all the ways m items can be arranged. Given the same set {1, 2, 3}, there are six permutations (or ways to order those number). These six are {1, 2, 3}, {1, 3, 2}, {2, 1, 3}, {2, 3, 1}, {3, 1, 2}, and {3, 2, 1}.

Get it?
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 5 things I like in Ubuntu 11.04 (Unity) and 10 things which I don't LXer Syndicated Linux News 0 05-02-2011 12:30 AM
LXer: Getting Things GNOME - Useful Tool to Get Things Done! LXer Syndicated Linux News 0 12-07-2010 05:40 PM
LXer: The bug reporting culture: 10 things to avoid, 10 things you can do LXer Syndicated Linux News 0 01-21-2008 02:10 AM
Suse: confused on many things, why is installing things so hard? blackflare Linux - Newbie 11 10-16-2007 04:35 AM
LXer: Things found on the way to other things. LXer Syndicated Linux News 0 01-06-2007 08:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration