Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Algorithm Choice
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
f.moe...@freenet.de  
View profile  
 More options Apr 22 2008, 12:40 pm
From: f.moe...@freenet.de
Date: Tue, 22 Apr 2008 09:40:10 -0700 (PDT)
Local: Tues, Apr 22 2008 12:40 pm
Subject: Re:Algorithm Choice
On May 11 2007, 2:28 am, Greg <edven...@gmail.com> wrote:

> I'm trying to understand the difference between the processFrameOT and
> processFramePP functions. I thought that the OT version would be
> faster, but I'm seeing about 2-3x the speed if I use the PP version.
> I've checked with particle counts from 1000-20000.

> Am I misunderstanding the two algorithms?

Hi Gred, Gerald,

I made a similar observation. My PC : 3Ghz Athlon XP, Windows 2000,
GF5200 graphics card.

In theorie, when increasing the number of particles,
Computing time of processFramePP goes up fast (N^2),
while the computing time of processFrameOT is rising slower.

But the point is, for me the "Break Even" between these two methods is
at (roughly) 12000 particles!

I think we can expalin this. The PP method need to loop over all
particle combinations, while the OT method first groups the particles
into a tree, then computes only forces betwenn the relevant
combination.
The PP method is basicially brute-force number-crunshing (even without
needing a SQRT function !).

Gerald's OT involves recursion, dynamic memory allocating/freeing and
several square roots (diameter of a tree node, etc...). This overhead
seems very expensive, and should be a good target for optimization
efforts. OT will always be better for high numbers of particles.

Maybe it's like breaking a wall : For smaller(thinner) walls, banging
your head agains it very fastly can be more effective than solving the
problem by beeing smart. Especially if you have a hard hat ;-).

best wishes, and keep on hacking ;-)

Frank.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google