Click here to Skip to main content
15,883,921 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading ID3 Tags from .MP3 files Pin
Ravi Bhavnani4-Mar-04 5:49
professionalRavi Bhavnani4-Mar-04 5:49 
GeneralRe: Reading ID3 Tags from .MP3 files Pin
sps-itsec464-Mar-04 9:19
sps-itsec464-Mar-04 9:19 
GeneralRe: Reading ID3 Tags from .MP3 files Pin
Ernesto D.4-Mar-04 12:26
Ernesto D.4-Mar-04 12:26 
GeneralDeterming the area of a set of rectangles Pin
DanFreddy3-Mar-04 14:11
DanFreddy3-Mar-04 14:11 
GeneralRe: Determing the area of a set of rectangles Pin
Christian Graus3-Mar-04 16:45
protectorChristian Graus3-Mar-04 16:45 
GeneralRe: Determing the area of a set of rectangles Pin
Gary R. Wheeler3-Mar-04 16:52
Gary R. Wheeler3-Mar-04 16:52 
GeneralRe: Determing the area of a set of rectangles Pin
Christian Graus3-Mar-04 17:34
protectorChristian Graus3-Mar-04 17:34 
GeneralRe: Determing the area of a set of rectangles Pin
Filousov5-Mar-04 13:36
Filousov5-Mar-04 13:36 
Hi,
it should be no problem. Sort x coords (starting and ending) of rectangle,
then proceed from left to right. And consider each point as an event. When you come to starting point of rectangle A, add rectangle A to list and test its y coords against all other rectangles in list. When you come to end point of rectangle A, remove rectangle A from the list. This should help you to determine total overlap area.
This algorithm should run in O(N*Log N + K), where N is number of rectangles and K is number of overlap areas. So note, this algorithm is
only good, when there is not great number of overlapping rectangles, because
it gets asymptotically to O(n^2). In such case, it's better to use
brutal force algorithm.

Pavel Celba
GeneralBuffer Overflow's Pin
Frank Deo3-Mar-04 13:13
Frank Deo3-Mar-04 13:13 
GeneralRe: Buffer Overflow's Pin
Prakash Nadar3-Mar-04 13:35
Prakash Nadar3-Mar-04 13:35 
GeneralRe: Buffer Overflow's Pin
Steve S4-Mar-04 6:13
Steve S4-Mar-04 6:13 
GeneralRe: Buffer Overflow's Pin
Mike Dimmick4-Mar-04 6:29
Mike Dimmick4-Mar-04 6:29 
GeneralRe: Buffer Overflow's Pin
Frank Deo4-Mar-04 11:37
Frank Deo4-Mar-04 11:37 
GeneralAVI FIles Pin
Anonymous3-Mar-04 12:20
Anonymous3-Mar-04 12:20 
GeneralProcessing messages Pin
ffazly3-Mar-04 11:48
ffazly3-Mar-04 11:48 
GeneralRe: Processing messages Pin
rrrado4-Mar-04 6:28
rrrado4-Mar-04 6:28 
GeneralDeprecated files in \MS Visual Studio\VC98 Pin
john john mackey3-Mar-04 11:13
john john mackey3-Mar-04 11:13 
GeneralMFC dialog member sharing? (code included) Pin
Christophocles3-Mar-04 11:12
sussChristophocles3-Mar-04 11:12 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 5:10
BlackDice4-Mar-04 5:10 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 5:44
sussChristophocles4-Mar-04 5:44 
GeneralRe: MFC dialog member sharing? (code included) Pin
monrobot134-Mar-04 5:39
monrobot134-Mar-04 5:39 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 5:49
sussChristophocles4-Mar-04 5:49 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 6:07
BlackDice4-Mar-04 6:07 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 7:06
sussChristophocles4-Mar-04 7:06 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 8:23
BlackDice4-Mar-04 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.