SunQuest
           Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge
View Poll Results: What language should be used to discuss algorithms?
Pseudocode 13 37.14%
PHP 3 8.57%
C(++) 7 20.00%
Pascal 2 5.71%
Other 4 11.43%
Any well-known language 6 17.14%
Voters: 21. You may not vote on this poll


Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #16  
Old January 11th, 2002, 07:25 AM
andnaess andnaess is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2001
Location: Oslo
Posts: 1,516 andnaess User rank is Private First Class (20 - 50 Reputation Level)andnaess User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
There should be a forum for regular expressions containing one post, and it should read: "Are you absolutely sure you need a regular expression?".
__________________
--
Regards
André Næss

Puritanism: The haunting fear that someone, somewhere may be having fun

Reply With Quote
  #17  
Old January 11th, 2002, 09:59 AM
Thrasher Thrasher is offline
Canta como rafaé
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Barcelona
Posts: 74 Thrasher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to Thrasher
I had the idea of the algorithm forum because of a trouble that I found in my job.

I was developing a system to store logos and ringing tones for mobile phones. The problem came when I was asked to convert to only 2 colors (black and transparent) any image that the user uploaded (in True Color, for example).

Then, searching a lot, I finally found some image dithering techniques which I found very interesting (and useful). And then I thought myself that an algorithms forum would suit for those questions that are not tied to any language.

Note: the function is only 12 lines in C.

I didn't post the question (nor the answer) to any forum because I know that in the PHP forum it would be of no interest to those of "please, give me the result of a query".

It took me to another trouble. Good image resizing. What are bilinear and trilinear filters? And when to use them, before or after the dithering ?

I think most of us have ever had a similar trouble.
__________________
Thrasher



'Y se ahogaron los dooos
No eran duros pa pagar, cuñaaoo !!'
El vagamundo - El risitas y su cuñao

Reply With Quote
  #18  
Old January 11th, 2002, 02:56 PM
andnaess andnaess is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2001
Location: Oslo
Posts: 1,516 andnaess User rank is Private First Class (20 - 50 Reputation Level)andnaess User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
It sounds like you should pick up a book on image manipulation. Bear in mind though that 12 lines of code in C can still run extremely slow in PHP. I've mentioned this before, but when I implemented the quicksort algorithm in PHP and compared it's running time to the internal sort() routine (which also uses quicksort), the PHP implementation was in the order of 1000 times slower. Have you had a look at imagemagick? http://www.imagemagick.org/ It's available for PHP I think...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Algorithms Forum?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway