473,791 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How create algorithms

Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.

Tanks, FroxX
Jul 22 '05 #1
10 1466
FloWo3 wrote:

Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.


Paper, lots of paper.
Pencil, lots of pencil
Trying to solve the problem on Paper
and pencil. Once I can solve the problem
on paper -> repeat the whole thing and
monitor what I do.

Once you think you have an algorithm, go through
it with someone else. It really doesn't matter if
that someone understands what you are talking about.
Just having the need to express your ideas in talken
language is enough. You can even talk to a teddy bear
and it works.

--
Karl Heinz Buchegger
kb******@gascad .at
Jul 22 '05 #2
FloWo3 wrote:
Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.

Tanks, FroxX


The morning in the bed, a quarter of hour before the ring bells.
I take the problem (usually the algoritm) of the day before, and usually
I get it...
Pierre Couderc
Jul 22 '05 #3
FloWo3 writes:
how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.


My most effective tool is my sub-conscious. I try to understand what the
problem is and then go on with my life. If I'm lucky, which I quite often
am, a solution will come to me in the next few hours.
Jul 22 '05 #4
FloWo3 wrote:
Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.


I figure out how to do it by hand, keeping track of *everything* I do
and *everything* I have to remember. If you don't know how to do it
yourself, you don't have an algorithm.

--
Will Twentyman
email: wtwentyman at copper dot net
Jul 22 '05 #5

"Karl Heinz Buchegger" <kb******@gasca d.at> wrote in message
news:41******** *******@gascad. at...
FloWo3 wrote:

Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.


Paper, lots of paper.
Pencil, lots of pencil
Trying to solve the problem on Paper
and pencil. Once I can solve the problem
on paper -> repeat the whole thing and
monitor what I do.

Once you think you have an algorithm, go through
it with someone else. It really doesn't matter if
that someone understands what you are talking about.
Just having the need to express your ideas in talken
language is enough. You can even talk to a teddy bear
and it works.


Yeah, but my teddy bear keeps correcting me..it's really annoying! :-)

-Howard
Jul 22 '05 #6
"Karl Heinz Buchegger" <kb******@gasca d.at> wrote in message
news:41******** *******@gascad. at...
FloWo3 wrote:

Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.


Paper, lots of paper.
Pencil, lots of pencil
Trying to solve the problem on Paper
and pencil. Once I can solve the problem
on paper -> repeat the whole thing and
monitor what I do.

Once you think you have an algorithm, go through
it with someone else. It really doesn't matter if
that someone understands what you are talking about.
Just having the need to express your ideas in talken
language is enough. You can even talk to a teddy bear
and it works.


:-) This isn't as strange as it might sound to some. Since
I mostly work alone at home, I usually can't discuss problems
'face to face' with someone. When I get stuck, sometimes I'll
'consult' with my cat. Of course his only answers are "Meow"
and perhaps rubbing against my leg. But As Karl says, just
vocalizing an issue can help uncover a solution. And Kitty
seems to appreciate the attention. :-)

-Mike
Jul 22 '05 #7
Mike Wahler wrote:
[snip]
:-) This isn't as strange as it might sound to some. Since
I mostly work alone at home, I usually can't discuss problems
'face to face' with someone. When I get stuck, sometimes I'll
'consult' with my cat. Of course his only answers are "Meow"
and perhaps rubbing against my leg. But As Karl says, just
vocalizing an issue can help uncover a solution. And Kitty
seems to appreciate the attention. :-)

-Mike


My cats seem to have a one track mind:

Me: "What do you think about using multiple traversal pointers
and choosing the one or more that succeed?"
Cat:"Time to eat already! Meow!"

Me: "Is it better to use a global hash table or one for each scope?"
Cat:"Time to eat already! Meow!"

....

-Rich

--
Richard Pennington
Email: ri**@pennware.c om
http://www.pennware.com ftp://ftp.pennware.com
Jul 22 '05 #8
FloWo3 wrote:
Hi,

how do you create (design) algorithms.
I'm talking about thinking about it and come to an idea.

Tanks, FroxX


Recipe for Algorithm

20 parts reading
1 part inspiration
99 parts perspiration

adjust to taste
Jul 22 '05 #9
"Richard Pennington" <ri**@pennware. com> wrote in message
news:mj******** *********@newss vr19.news.prodi gy.com...
Mike Wahler wrote:
[snip]
:-) This isn't as strange as it might sound to some. Since
I mostly work alone at home, I usually can't discuss problems
'face to face' with someone. When I get stuck, sometimes I'll
'consult' with my cat. Of course his only answers are "Meow"
and perhaps rubbing against my leg. But As Karl says, just
vocalizing an issue can help uncover a solution. And Kitty
seems to appreciate the attention. :-)

-Mike


My cats seem to have a one track mind:

Me: "What do you think about using multiple traversal pointers
and choosing the one or more that succeed?"
Cat:"Time to eat already! Meow!"

Me: "Is it better to use a global hash table or one for each scope?"
Cat:"Time to eat already! Meow!"


With my cat, the response is always "Why aren't you petting me? Meow!" I
think he's very intelligent, because he always has an answer for all of my
questions. I don't always understand his answers, but that's just a
communication issue. It still helps me (just as it helps Mike Wahler),
because I can have a phony conversation with my cat for a fair amount of
time before he becomes bored and walks away. :-) I figure that some people
might think I was fit for a straightjacket if they saw me doing that. If
he's not around, I wind up talking to myself, which works almost as well,
but isn't much better when witnessed by others. :-)

--
David Hilsee
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4179
by: Anders Borum | last post by:
Hello! I'm starting to dive into algorithms in general (sorting, trees etc.) and am currently reading a book from Robert Sedgewick called "Algorithms in C++, 3rd. Edition" and would like other book recommendations on algorithms, perhaps less hardcore than this one. Although very interesting, I realize I need to get a solid foundation before fully understanding the advanced topic covered in that book and would ask for recommendations...
17
6525
by: silverburgh.meryl | last post by:
In STL, there is no copy_if algorithm. But how can I emulate that? I am thinking about using find_if and then a copy. But how can I pass the InputIterator (begin and end) to copy so that it knows the range it tries to copy from. Thanks for any idea.
4
6986
by: Jonathan Wood | last post by:
Does anyone know why the documentation for System.Security.Cryptography.MD5.Create() seems to omit completely any description of allowed arguments. I'm trying to convert some C++ code to C# and seem to be getting different MD5 results. If other algorithms are available, maybe that is related to the problem I'm having. But the docs for this method don't tell me anything about what algorithms are supported? Thanks.
26
4109
by: vlsidesign | last post by:
I am a newbie and going through "The C programming language" by Kernighan & Richie on my own time (I'm not a programmer but I want to learn because it can save me time in my normal job, and it is kind of fun). As I go through the book, I seek to do all the exercises because they are very useful, and good, but it seems like I am just stumbling through somewhat. In particular, I don't really know how to think about "catching errors", or how...
19
7828
by: Dongsheng Ruan | last post by:
with a cell class like this: #!/usr/bin/python import sys class Cell: def __init__( self, data, next=None ): self.data = data
3
3724
by: arnuld | last post by:
i am looking for "algorithms in C++" book. Knuth is FULL of Mathematics, not my kind of author. i checked ACCU and got these (listing only those that are available in my country: 1. Algorithms in C++ -- Robert Sedgewick (3e) 2. Data Structures and Algorithms Analysis - Mark Allen Weiss (2e) 3. Introduction to Computing and Algorithms - Russell Shackelford (1e) 4. Introduction to Algorithms - Cormen et al.(2e)
17
2096
by: Happy Man | last post by:
Truth Seeker http://www.thisistruth.org/truth.php?f=TruthSeeker No one is compelled to accept the truth, but it is certainly a shame upon the human intellect when a man is not even interested in findingout what the truth is!
2
5167
by: =?Utf-8?B?Q3JtTmV3Ymll?= | last post by:
Hi, 1) I want to hone my problem solving skills and be good at logic. How do I achieve this? 2) Where can I find c# puzzles or c# algorithms. 3) How do I print the values of a N X N matrix using c#. 1 2 3 4 5 6 7 8
53
5260
by: Vicent Giner | last post by:
Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming language —I mean, it is not like C, in that sense. I am working on my PhD Thesis, which is about Operations Research,
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10154
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.