Search found 1317 matches

by dafhi
Aug 03, 2011 8:58
Forum: Beginners
Topic: Completely new and am SO confused
Replies: 7
Views: 1019

you guys were all over that like dobermans on a tossed sausage link
by dafhi
Aug 02, 2011 2:37
Forum: General
Topic: Squares
Replies: 7679
Views: 478090

@albert

I like your premise. I too have fascination with attraction / repulstion, and am inclined to believe that light travels through a type of 'liquid'

As Richard pointed out, typically our most prevalent "map" is analogy.
by dafhi
Aug 01, 2011 5:35
Forum: Community Discussion
Topic: New community ezine! BASIC Gamer - A FB/QB64/QB games mag
Replies: 10
Views: 2317

I read more of your zine #1 than what I usually read from anything (unless it's technical information)
by dafhi
Jul 23, 2011 11:37
Forum: Projects
Topic: visual sorts
Replies: 5
Views: 1432

@dodi - that's pretty cool

Looking forward to seeing your sorts demo.
by dafhi
Jul 23, 2011 0:22
Forum: Projects
Topic: visual sorts
Replies: 5
Views: 1432

Update: properly formatted to eliminate aforementioned errors :)
by dafhi
May 23, 2011 9:46
Forum: Projects
Topic: visual sorts
Replies: 5
Views: 1432

visual sorts

[2014 March 17] - cartesian tree merge [2012 May 27] - new qsort [2011 Aug 27] - minor optimizations to the QSorts ' ============================= ' visual sorts by c_rex ' ' Ver. 0.96 - 2014 Mar 27 ' ' (0.95 will be next version) ' ' ============================= /' ------- Notes ------- lerp, casc...
by dafhi
May 05, 2011 22:56
Forum: General
Topic: timing program for sort routine's
Replies: 17
Views: 2012

Researching CombSort (which I am in love with) I discovered that some sorts perform better starting at the edges, working inward.

So the bubble will go like so:

Code: Select all

For A = Start to End - 1
For B = End to A + 1 step -1
by dafhi
Apr 25, 2011 3:17
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4191

That's interesting. I see one optimization:

For x= Ubound(a) To Lbound(a)+index+1 Step -1
a(x)=a(x-1)
Next x
a(x)=insert
by dafhi
Apr 25, 2011 0:26
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4191

It's just a selection sort. QSort shines with bigger lists. What I'm thinking would be cool is a "Linked List" sort which could sort chunks of say, 256 elements.

Keep in mind that selection sort will do well here because it intentionally keeps swaps to a minimum.
by dafhi
Apr 24, 2011 23:57
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4191

UPDATE: lol. I see my edit hadn't occurred in time. The J as Long can simply be integer. I had overlooked it converting from VB.
by dafhi
Apr 24, 2011 2:18
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4191

Here's my bi-di selection sort Dim as Integer Position_of_Hi, Position_of_Lo, S_, J ' Pass lowerbound and upperbound as Start_ and End_ Sub BiDiSelectSort(Ary() As Single, Start_ As Integer, End_ As Integer) Do While Start_ < End_ Position_of_Hi = Start_ Position_of_Lo = Start_ S_ = ...
by dafhi
Apr 22, 2011 4:44
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4191

vdecampo's post on qsort got me hyped. I intended to speed up the bubble sort by storing location of lowest and highest values, and researched thereafter, finding that I had coded a bi-directional selection sort. It's about twice as fast as bubble
by dafhi
Feb 26, 2011 12:01
Forum: Tips and Tricks
Topic: Sprite Sheet fast sprite grabbing
Replies: 6
Views: 1954

I had a quick look, and might have a better idea of what's happening from comments, than code (where I feel mostly clueless).

Recently I developed a sprite sheet tile dims estimator that messes up when there's only 1 tile!

I'll need to get back to it.
by dafhi
Feb 06, 2011 0:38
Forum: Tips and Tricks
Topic: line & floodfill
Replies: 0
Views: 1015

line & floodfill

Howdy folks. Here are 2 low level gfx routines I've been sitting on. DrawLine() is unique in that x and y become meaningless after I've passed control to nested subs. AreaFill() is my second attempt at a flood fill algorithm. My first, while running perfectly (after many wrinkles), crashed from stac...
by dafhi
Jan 24, 2011 21:57
Forum: Tips and Tricks
Topic: Time constant Bezier Splines
Replies: 4
Views: 1187

ah, without really understanding the code, I posted this.

I assumed sample size to be applied in a manner affecting 'line segments'

Go to advanced search