Jump to content

Array question

- - - - -

  • Please log in to reply
4 replies to this topic

#1
luke21

luke21

    Newbie

  • Members
  • Pip
  • 7 posts
I have trouble with this question. Any help is appreciated!

How many different sorted orderings are there for an array of 10 elements?
1) 10 2) 20 3) 100
4) 1000 5) 1000000 6) none of the above

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
You mean permutations (or rather combination without repitition). Think how many times each letter can be in a different order, it could be catastrophic.

Edited by Alexander, 08 December 2010 - 01:55 AM.

Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
2 increasing and decreasing. Unless you really meant Permutation .
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:

#4
TCristoforo

TCristoforo

    Learning Programmer

  • Members
  • PipPipPip
  • 52 posts
I could be wrong, but I believe there is a function in Excel that can tell you? Permut?

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Combination without repetition can be found by descending multiplication of natural numbers, i.e. factorial 10! = 3 628 800 which is clearly not a power of ten and is not within the provided answers.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users