Author Topic: My first contribution: Introduction to computing  (Read 8728 times)

0kelvin

  • Guest
My first contribution: Introduction to computing
« on: September 06, 2011, 01:33:31 am »
https://sites.google.com/site/logicadealgoritmos/introduction-to-computing

It skips the very beginning, about what a computer does and what are the fundamental pieces of a computer.

It goes as far as functions and what is a pointer and how to use one.

From there I have two paths: one is to study data structure and more complex algorithms. The other is numerical calculus and writing algorithms which can solve integrals, derivatives, limits, things that students learn in their first semester. Since my course is about a mixture of applied math and applied physics, I'll probably be following the second path and be leaving data structures to a much later stage.

PS: there are probably many grammar mistakes and some inconsistencies regarding science computing terminology because I rushed to write all that.
« Last Edit: September 09, 2011, 04:43:36 pm by 0kelvin »

Offline Shoshou..Mony

  • Retired Admin~!
  • Honorary Member
  • SF Overlord
  • *****
  • Posts: 18314
  • Reputation: 65517
  • Gender: Female
  • I WILL make a change inshAllah. =]
Re: My first contribution: Introduction to computing coursework
« Reply #1 on: September 06, 2011, 05:03:20 am »
Awww mashAllah. This is very kind of you!

+rep. Thank you loads for your contribution. =]


Sometimes, ALLAH breaks our heart to make us whole.
Sometimes, ALLAH allows pain so we can be stronger.
Sometimes, ALLAH sends us failure so we can be humble.
Sometimes, ALLAH takes everything away from us so we can learn the value of everything HE gave us.


When Allah leads you to the edge of difficulty... either ALLAH will catch you when you fall or ALLAH will teach you how to fly! =]

Please make them strong ya Allah...

Romeesa-chan...<3

Offline username

  • SF Geek
  • ****
  • Posts: 461
  • Reputation: 65535
  • Nobody is perfect.... I am Nobody.
Re: My first contribution: Introduction to computing coursework
« Reply #2 on: September 06, 2011, 12:39:11 pm »
perfect
youre doing it aswell?
cie computing a-level?
im darn scared about my course work:s

0kelvin

  • Guest
Re: My first contribution: Introduction to computing coursework
« Reply #3 on: September 06, 2011, 03:51:26 pm »
I'm undergraduating in meteorology. Introduction to computing is the only discipline about computing that I have.

Offline username

  • SF Geek
  • ****
  • Posts: 461
  • Reputation: 65535
  • Nobody is perfect.... I am Nobody.
Re: My first contribution: Introduction to computing coursework
« Reply #4 on: September 06, 2011, 04:12:32 pm »
ahhh welll
thanks for sharing the knowledge anyway :)

0kelvin

  • Guest
Re: My first contribution: Introduction to computing
« Reply #5 on: September 08, 2011, 04:43:23 am »
Wrong word.  :P

After some quick research I've found that coursework referes to the work you've done on a course (papers, annotations, solved exercises, etc).

That google site is small like a guide book and contains very few content, so not a reference book. Reference material seems to be a good definition.

Offline benk

  • Newbie
  • *
  • Posts: 42
  • Reputation: 66
  • Gender: Male
    • Construction Essays
Re: My first contribution: Introduction to computing
« Reply #6 on: October 25, 2011, 07:08:40 am »
Hi Shoshou..Mony! I like your text :)

Offline Dasith

  • SF Senior Citizen
  • *****
  • Posts: 919
  • Reputation: 65535
  • Gender: Male
Re: My first contribution: Introduction to computing
« Reply #7 on: October 25, 2011, 12:07:33 pm »
https://sites.google.com/site/logicadealgoritmos/introduction-to-computing

It skips the very beginning, about what a computer does and what are the fundamental pieces of a computer.

It goes as far as functions and what is a pointer and how to use one.

From there I have two paths: one is to study data structure and more complex algorithms. The other is numerical calculus and writing algorithms which can solve integrals, derivatives, limits, things that students learn in their first semester. Since my course is about a mixture of applied math and applied physics, I'll probably be following the second path and be leaving data structures to a much later stage.

PS: there are probably many grammar mistakes and some inconsistencies regarding science computing terminology because I rushed to write all that.


Hey nice site , vey helpful indeed , but dont u think u confused algorithms with C / C++ programs ?
I would love to change the world, but they won't give me the source code. ;)

0kelvin

  • Guest
Re: My first contribution: Introduction to computing
« Reply #8 on: October 28, 2011, 03:10:47 am »
Everything it's in C because the course is done with C programming language. But you are right, for some problems such as counting numbers or sequences of numbers, better ommit the #include int main() thing and leave the essential algorithm itself.

I've seen a different method of teaching which is to use Java and object orientation programming right from the beginning, but that wasn't my case.

By the way, I'm writing some annotations (in portuguese version first), because there are things that need to be improved. For ex: I'm thinking about adding a chapter with ~20 example problems with commented code (make the union of two arrays, calculate Taylor Series for cos function, do the sum of a sequence of factorials, cash machine program to count notes, etc).

Offline benk

  • Newbie
  • *
  • Posts: 42
  • Reputation: 66
  • Gender: Male
    • Construction Essays
Re: My first contribution: Introduction to computing
« Reply #9 on: November 09, 2011, 07:07:53 am »
It reminds me of my c programming when I was in college but anyway, this discussion is a great idea:)

Offline Dasith

  • SF Senior Citizen
  • *****
  • Posts: 919
  • Reputation: 65535
  • Gender: Male
Re: My first contribution: Introduction to computing
« Reply #10 on: November 09, 2011, 02:09:00 pm »
Everything it's in C because the course is done with C programming language. But you are right, for some problems such as counting numbers or sequences of numbers, better ommit the #include int main() thing and leave the essential algorithm itself.

I've seen a different method of teaching which is to use Java and object orientation programming right from the beginning, but that wasn't my case.

By the way, I'm writing some annotations (in portuguese version first), because there are things that need to be improved. For ex: I'm thinking about adding a chapter with ~20 example problems with commented code (make the union of two arrays, calculate Taylor Series for cos function, do the sum of a sequence of factorials, cash machine program to count notes, etc).

An algorithm should be simple enough to understand without annotations , & should not limit it self to one single programming language (in fact it shouldn't be a programming language @ all ) Anybody should be able to develop a program by understanding the logic of an algorithm & not the syntax.
I would love to change the world, but they won't give me the source code. ;)

Offline benk

  • Newbie
  • *
  • Posts: 42
  • Reputation: 66
  • Gender: Male
    • Construction Essays
Re: My first contribution: Introduction to computing
« Reply #11 on: December 09, 2011, 05:44:13 am »
I agree with Dasith  ;)

Offline 0kelvin

  • SF Immigrant
  • **
  • Posts: 92
  • Reputation: 41028
Re: My first contribution: Introduction to computing
« Reply #12 on: December 22, 2011, 03:40:48 pm »
Critics welcomed!

Revised almost everything:

- Removed all comments about C syntax, those are in a separated chapter now
- Solved confusion between programs x algorithms. Replaced ready to compile programs with short algorithms
- Better indentation and variable names in some algorithms
- Rethinked a bad practice: explaining programs in plain words. It's now documented code, or algorithms with short comments
- More examples were needed
- Rewriten some chapters from ground up
- New chapter: search and sort
- New chapter: solved exercises
- New chapter: pointer arithmetic, replaces the chapter about pointers and arrays. It's a placeholder chapter, it's pretty much empty by now.

[edit] Corrected one mistake:

We call a function like this function(array); or like this function(&array[0]); despite both have the same effect, it's wrong to say "array is a pointer". Not quite, but to fully understand that I have to write the chapter about pointer arithmetic.
« Last Edit: February 05, 2012, 08:29:20 pm by 0kelvin »

Offline benk

  • Newbie
  • *
  • Posts: 42
  • Reputation: 66
  • Gender: Male
    • Construction Essays
Re: My first contribution: Introduction to computing
« Reply #13 on: January 05, 2012, 08:51:21 am »
thanks 0kelvin! it really helps!

Offline 0kelvin

  • SF Immigrant
  • **
  • Posts: 92
  • Reputation: 41028
Re: My first contribution: Introduction to computing
« Reply #14 on: November 10, 2013, 03:53:12 pm »
It's been two years since I first published this... wow!

Some corrections:

Tracking algorithms with pencil and paper: addicted -> spoiled. Under that context, the word "spoiled" fits better.

Introduction to recursive functions: rewrote the description about recursion vs iteration in finbonacci's example.

Additions:

Ternary operator: translating "if else" into expressions using the conditional operator (question mark)

Future additions:

Linked lists, stack, queue, binary tree, more examples of recursive functions, pointer arithmetic, structs.
« Last Edit: November 11, 2013, 02:35:38 am by 0kelvin »