Solved

Math solution for number of possible window monitor positions using 1, 2, or 3 divisions

Posted on 2017-01-29
4
83 Views
Last Modified: 2017-01-30
Hello,

What math equation describes the number of possible window positions when dividing a computer screen (rectangle) using one, two, & three sections in one or both (horizontal & vertical) axes?

For example, one division obviously has 1 possibility:
Fig. 1And it appears that with one or two divisions in each direction there are 4 + 2 + 2 = 8 possibilities:
Fig. 2Fig. 3But what about with one, two, or three divisions? I initially counted 9 + 3 +3 + 4 + 12 = 31
Fig. 4Fig. 5Fig. 6Fig. 7but then I realized I had forgotten the 2-3 combinations so that's 12 more (ie 31 + 12 = 43).
Fig. 8I suspect there may be others because 43 seems like a bit of an odd total. That's why it needs math!

And what about having up to four divisions? I didn't even try to start doing that graphically.

Thanks
0
Comment
Question by:WeThotUWasAToad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
sarabande earned 350 total points
ID: 41985381
the problem is not well defined yet. why should rectangles (0, 0, 8, 12) and (4, 0, 8, 12) be valid solutions (3rd and 5th yellow) but (0, 0, 6, 12) is not?

if you say all windows must have same size and a solution covers the whole screen, you nicely have

-           0 split lines 1 window
-           1 split line   3 windows
- up to 2 split lines 5 windows
- up to 3 split lines 7 windows

Sara
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 150 total points
ID: 41985573
Is it not a simple mathematical function:

(Vertical Dividers +1) x (Horizontal Dividers +1)

Examples:
Vert      Horiz
0+1  x   0+1 = 1
1+1  x   0+1 = 2
2+1  x   1+1 = 6

Thanks
Rob H
0
 

Author Comment

by:WeThotUWasAToad
ID: 41986195
Thanks for the responses.

the problem is not well defined yet. why should rectangles (0, 0, 8, 12) and (4, 0, 8, 12) be valid solutions (3rd and 5th yellow) but (0, 0, 6, 12) is not?
Apologies for the ambiguity in my OP. I did state that the possibilities for a given number of divisions includes those for a lower number but I neglected to account for the lower numbers and create a total . In other words:

1 division = 1 possibility
2 divisions = 1 (from 1 division) + 8 (as stated in OP) = 9 total possibilities
3 divisions = 1 (from 1 division) + 8 (from 2 divisions) + 43* (as stated in OP) = 52 total possibilities  

To avoid the same head scratching among other experts, I think the best step is to award points and close this thread and then re-post the question in a new thread.

Thanks again for the input.
0
 

Author Closing Comment

by:WeThotUWasAToad
ID: 41986199
See new thread.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a brief introduction to tissue engineering, the process by which organs can be grown artificially. It covers the problems with organ transplants, the tissue engineering process, and the current successes and problems of the tec…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question