Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 4: Working with Arrays > Finding Permutations and Combinations

Finding Permutations and Combinations

In order to understand recursion, one first must understand recursion.

—Anonymous

Both combinations and permutations of a set of values involve different arrangements of those values. In this section, we will define what these terms mean and show you how to do the following:

  • Calculate numbers of possible permutations and combinations of an array's elements
  • Generate permutations and combinations


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


 Â