Go Back   PCMech Forums > General & Off Topic > General Discussion

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-01-2005, 03:40 AM   #1
Banned
 
Join Date: Jun 2004
Location: Pakistan
Posts: 909
Basics of Computer

I have started this thread for the discussion regarding basics of Computers.
We know that the function of computers is based on digital signals (0 or 1).
But what is algorithms? Is algorithm the same as digits or is it something different?

What role does algorithm plays in the internal function of a Computer?

Lets discuss....................

Have a Nice Day and Wish all of you a Happy New Year.
ITlover is offline   Reply With Quote
Old 01-01-2005, 06:45 AM   #2
PCMech: Saving Lives
 
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
Algorithm: http://www.webopedia.com/TERM/a/algorithm.html
__________________
WhatsThisBoxFor? is offline   Reply With Quote
Old 01-01-2005, 07:26 AM   #3
Banned
 
Join Date: Jun 2004
Location: Pakistan
Posts: 909
I'll check this site and return with my comments.

Regards,
ITlover is offline   Reply With Quote
Old 01-01-2005, 02:42 PM   #4
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
I don't mean to get off the question on the floor, but in what field of study, or maybe some member here can tell me how does the computer know to ignore words and what to do with them in programming? Easy example in Visual Basic, a For loop:

For x=0 to 4
Shape(x).FillColor = red
Next x

How does it know what the heck a for is, nevermind means? Does it store a variable with the present value and then at the end adds/subtracts the interval to the stroed varialbe. How does it know after 1 its 2, and after 2 its 3...?

^fo
foolishone is offline   Reply With Quote
Old 01-01-2005, 03:56 PM   #5
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
Visual basic is a compiled language, what you code is not the same as what the machine sees.

What the machine uses is called machine code, try studying the basics of assembly language to better understant machine code. Assembly language consists of stuff like "MOV AX,5h". That little line of code moves the value 5h (h for hex) into the register AX. By itself, that code is useless. There are other commands in assembly that allow for addition, subtraction, multiplicatinand division, and not a whole lot more. Assemlby is close to machine language, but machine language is far more cryptic and not human readable.

The ability to count is built into the CPU's circuitry. Understanding a for loop requires several lines of machine code.

Also, most compilers add extra stuff that isn't necessary. Assembly code is the longest way to write a program (you get to control everything but the end result will be more optomised. BUT, I'd recomend you stick to visual basic, I myself like C, but anything (except machine code) will be easier to code than assembly.

L J
__________________
Main: Gigabyte GA-770T USB3 - Phenom II 840 - 4GB DDR3 - Radeon 5750 1GB
HTPC: MSI K9N6PGM2-V2 - Athlon II 250 - 4GB DDR2 - Radeon 5670 512MB
HTPC: Zotac GeForce 6100E-E - Athlon X2 5800+ - 4GB DDR2

"Play a Windows CD backwards and you'll hear satanic voices, thats nothing, play it forwards and it installs Windows."
Colonel Sanders is offline   Reply With Quote
Old 01-02-2005, 11:39 AM   #6
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
Thank you Colonel Sanders, that was just what I was looking for.

^fo
foolishone is offline   Reply With Quote
Old 01-02-2005, 12:37 PM   #7
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 36,460
Coding in assembly produces the most efficient programs. Just ask Steve Gibson (grc.com) - and look at some of his work. You really have to be a geek to be able to do this, though - he's been doing this stuff for many years.
glc is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:26 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0