On Fri, Jan 18, 2002 at 10:27:14AM -0600, Greg Bacon wrote:
> In message <[EMAIL PROTECTED]
> one.net>,
>     user who writes:
> 
> Enumerating the possible operator layouts:
> 
>   - # # o # o # o
>   - # # o # # o o
>   - # # # o o # o
>   - # # # # o o o
> 
> where '#' represents a number and 'o' an operator.
> 
> A little combinatorics:
> 
>     4!   # positions for numbers
>     4    # number of operations
>   x 4    # number of operator layouts
>   ---
>   384    # size of search space

Each operator position can hold one of four operators, which means you have
4**4 different arrangements of operators for each of the four operator
layouts.

4! * (4**4) * 4 = 24576

Ronald

Reply via email to