Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Mathematically-troubled Computer Scientist?

Mathematically-troubled Computer Scientist?

Scheduled Pinned Locked Moved The Lounge
algorithmsquestion
70 Posts 28 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Shog9 0

    Ian Uy wrote:

    How can I relate Integral Calculus to programming?

    I think you're looking at this the wrong way around. Calculus is used in many engineering tasks; software is needed to reduce errors and tedium inherent in such calculations; if you have a poor understanding of the math involved, you're gonna have a hard time implementing the algorithms. When i left school, i had pretty much the same attitude: "i'll never use this, so why remember it?" A few years later, i'm working with engineers on software to calculate acoustics and airflow through complex shapes... For the most part, i stick to the UIs, but more and more i find myself digging up web references and old textbooks to try to bring this stuff back. Where i paid attention, it comes easy and i get things done; where i just worked to get by, i struggle.

    Citizen 20.1.01

    'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

    M Offline
    M Offline
    MidwestLimey
    wrote on last edited by
    #44

    Or even something as mundane as caching loaded win forms (which could take 2-3 seconds to load from scratch) and inventing a mechanism to determine which ones should be dropped and which should stay resident. Determining the utility of a form to a user was fun but required a bit of maths revision.


    I'm largely language agnostic


    After a while they all bug me :doh:


    1 Reply Last reply
    0
    • I Ian Uy

      I passed calculus by memorizing the "formulas" and the "patterns" on my professors lectures to answer the quizzes. I never UNDERSTAND why they do "this" and "that" to get "those". I don't even know what Calculus is for. That may explain why I never liked Math in the first place. :(

      It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #45

      Ian Uy wrote:

      I never UNDERSTAND why they do "this" and "that" to get "those".

      Sounds like you didn't have a good instructor. They should have covered how and why things work the way they work in calculus. As far as seeing how integral calculus fits into computer programming, just wait until you have a project that is dealing with physics/engineering stuff, that warrants a need for it.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      1 Reply Last reply
      0
      • D Dalek Dave

        Matthew Faithfull wrote:

        don't think statistics is even worth studying

        You are right! (47% of the Time)

        ------------------------------------ "Password Protected? You're dealing with Geeks, just turn it on, type Gandalf and you're in!" - Frankie Boyle

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #46

        I won't ask if you have standard deviations. :rolleyes:

        Visit http://www.notreadytogiveup.com/[^] and do something special today.

        O 1 Reply Last reply
        0
        • C Chris Austin

          Ian Uy wrote:

          The logical thing that I would do is run both algorithms in the same machine and get the total running time then benchmark the two algorithms.

          This would get you fired or put on code maintenance at a lot of places I've worked at. I'm not trying to be harsh but, why even bother with a science degree if you are going to ignore the science aspect.

          Sovereign ingredient for a happy marriage: Pay cash or do without. Interest charges not only eat up a household budget; awareness of debt eats up domestic felicity. --Lazarus Long

          I Offline
          I Offline
          Ian Uy
          wrote on last edited by
          #47

          Because a science degree will get you a better higher paying job? (At least in this 3rd-world country)

          It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

          C 1 Reply Last reply
          0
          • I Ian Uy

            The logical thing that I would do is run both algorithms in the same machine and get the total running time then benchmark the two algorithms. I realize that this is not the "scientific" way of doing this. One should be able to say that "My algorithm is linear while the other guy is quadratic". :doh:

            It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #48

            Well, running a bunch of benchmarks and timing them is okay. An even better thing to do, that I did when I took algorithms in college, is to actually count the number of times instructions were executed during program flow. While you can just run some benchmarks, sitting down and actually proving the efficiency of the algorithm mathematically, saves you from any surprises that may cause the algorithm to perform worse than expected in some unknown case.

            Ian Uy wrote:

            One should be able to say that "My algorithm is linear while the other guy is quadratic"

            But to some, that just isn't going to cut it or make the grade. They'll want to see proof of it, and a bunch of numbers pulled up from benchmarking isn't going to hack it.

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            1 Reply Last reply
            0
            • I Ian Uy

              The logical thing that I would do is run both algorithms in the same machine and get the total running time then benchmark the two algorithms. I realize that this is not the "scientific" way of doing this. One should be able to say that "My algorithm is linear while the other guy is quadratic". :doh:

              It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

              S Offline
              S Offline
              Shog9 0
              wrote on last edited by
              #49

              Ian Uy wrote:

              The logical thing that I would do is run both algorithms in the same machine and get the total running time then benchmark the two algorithms.

              Because that doesn't give you the same information. An O(n) algorithm might appear faster than an O(1) algorithm if n is small and O is considerably larger in the second case. I've spent entirely too much time in the past few years cleaning up old code written to retrieve data with O(n) or worse characteristics. It presumably worked fine for a few years, then the sets of data being searched become non-trivial. Adding a system for indexing it made an immediate difference, but with close to a year of poor performance in the field while the old code was ripped out, updated, and tested; a better design up-front would have saved everyone a lot of headaches.

              Citizen 20.1.01

              'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

              1 Reply Last reply
              0
              • I Ian Uy

                Sadly, I am one of those mathematically-troubled student whose taking-up Computer Science. I've barely passed all my math subjects (never failed one though) and I had a hard time in my Automata and Algorithms Complexity (Big o stuff) subjects. However, I aced all my programming subjects including Data Structures and Artificial Intelligence. I also aced all software development subjects. How important are those (Automota, Algorithms...., Mathematics) subjects in a Software Developers life? Am I doomed? Am I the only one who is stupid enough to take Computer Science when I know for a fact that I'm stupid in Math? :^)

                It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                R Offline
                R Offline
                Richard Jones
                wrote on last edited by
                #50

                As long as you can understand .02 cents/KB is NOT $.02/KB, you're ok. :laugh: :sigh:

                "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

                1 Reply Last reply
                0
                • I Ian Uy

                  Because a science degree will get you a better higher paying job? (At least in this 3rd-world country)

                  It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                  C Offline
                  C Offline
                  Chris Austin
                  wrote on last edited by
                  #51

                  Not when they see you lack the basic skills.

                  Sovereign ingredient for a happy marriage: Pay cash or do without. Interest charges not only eat up a household budget; awareness of debt eats up domestic felicity. --Lazarus Long

                  1 Reply Last reply
                  0
                  • I Ian Uy

                    Sadly, I am one of those mathematically-troubled student whose taking-up Computer Science. I've barely passed all my math subjects (never failed one though) and I had a hard time in my Automata and Algorithms Complexity (Big o stuff) subjects. However, I aced all my programming subjects including Data Structures and Artificial Intelligence. I also aced all software development subjects. How important are those (Automota, Algorithms...., Mathematics) subjects in a Software Developers life? Am I doomed? Am I the only one who is stupid enough to take Computer Science when I know for a fact that I'm stupid in Math? :^)

                    It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #52

                    My grade in algorithms class was a Big-O. I hope that pun wasn't already used.

                    I 1 Reply Last reply
                    0
                    • S Shog9 0

                      You think you've got it bad - my whole kitchen still smells like it. Seriously tempted to try a BBQ breakfast... :~

                      jgasm wrote:

                      because of my obsession with food...someone's mind is in the gutter.

                      Hey, i assure you, my mind is on high and noble matters. My rich and tangy sauce, for instance.

                      Citizen 20.1.01

                      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

                      M Offline
                      M Offline
                      Mustafa Ismail Mustafa
                      wrote on last edited by
                      #53

                      Shog9 wrote:

                      Seriously tempted to try a BBQ breakfast...

                      You ought to. Its the bomb. We tried it once in college when we got paychecks. Totally worth the splurge. :cool:

                      Don't forget to vote if the response was helpful


                      Sig history "You're an idiot." John Simmons, THE Outlaw programmer "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon Unix is a Four Letter Word, and Vi is a Two Letter Abbreviation

                      1 Reply Last reply
                      0
                      • I Ian Uy

                        Sadly, I am one of those mathematically-troubled student whose taking-up Computer Science. I've barely passed all my math subjects (never failed one though) and I had a hard time in my Automata and Algorithms Complexity (Big o stuff) subjects. However, I aced all my programming subjects including Data Structures and Artificial Intelligence. I also aced all software development subjects. How important are those (Automota, Algorithms...., Mathematics) subjects in a Software Developers life? Am I doomed? Am I the only one who is stupid enough to take Computer Science when I know for a fact that I'm stupid in Math? :^)

                        It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                        D Offline
                        D Offline
                        Dave Parker
                        wrote on last edited by
                        #54

                        I don't think it's all that important, it depends on exactly what you're working on though. It's important in games nowadays with all the 3D stuff going on and it can be important in business software that deals with money, tax and so on. For a lot (probably most) of software development work it isn't really necessary though.

                        1 Reply Last reply
                        0
                        • P Paul Conrad

                          jgasm wrote:

                          turn on the tv "cooking for geeks! hosted by Shog"

                          Now maybe if some Food Network guys could get him on the air :)

                          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                          S Offline
                          S Offline
                          Shog9 0
                          wrote on last edited by
                          #55

                          Personally, i'd like to see Michael Chu[^] on there.

                          Citizen 20.1.01

                          'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

                          1 Reply Last reply
                          0
                          • L Lost User

                            My grade in algorithms class was a Big-O. I hope that pun wasn't already used.

                            I Offline
                            I Offline
                            Ian Uy
                            wrote on last edited by
                            #56

                            Good one! :laugh:

                            It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                            1 Reply Last reply
                            0
                            • L Lost User

                              I won't ask if you have standard deviations. :rolleyes:

                              Visit http://www.notreadytogiveup.com/[^] and do something special today.

                              O Offline
                              O Offline
                              Oakman
                              wrote on last edited by
                              #57

                              Trollslayer wrote:

                              I won't ask if you have standard deviations

                              Maybe we need to take this to the Soapbox

                              Jon Smith & Wesson: The original point and click interface

                              1 Reply Last reply
                              0
                              • I Ian Uy

                                Sadly, I am one of those mathematically-troubled student whose taking-up Computer Science. I've barely passed all my math subjects (never failed one though) and I had a hard time in my Automata and Algorithms Complexity (Big o stuff) subjects. However, I aced all my programming subjects including Data Structures and Artificial Intelligence. I also aced all software development subjects. How important are those (Automota, Algorithms...., Mathematics) subjects in a Software Developers life? Am I doomed? Am I the only one who is stupid enough to take Computer Science when I know for a fact that I'm stupid in Math? :^)

                                It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                                M Offline
                                M Offline
                                Member 96
                                wrote on last edited by
                                #58

                                Don't worry one bit, I'm exactly (probably even more) mathematically challenged than you are and I've done quite well in the field. Just don't expect to do any work in engineering fields or computer graphics fields unless you can find plug in algorithms and understand the concept of which tools are needed etc. Math is as close to irrelevant a skill for *most* programming these days as basket weaving.


                                "It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson

                                S 1 Reply Last reply
                                0
                                • M Member 96

                                  Don't worry one bit, I'm exactly (probably even more) mathematically challenged than you are and I've done quite well in the field. Just don't expect to do any work in engineering fields or computer graphics fields unless you can find plug in algorithms and understand the concept of which tools are needed etc. Math is as close to irrelevant a skill for *most* programming these days as basket weaving.


                                  "It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson

                                  S Offline
                                  S Offline
                                  Shog9 0
                                  wrote on last edited by
                                  #59

                                  John C wrote:

                                  Math is as close to irrelevant a skill for *most* programming these days as basket weaving.

                                  *pauses, the willow switch in one hand poised to intersect the gap between stakes* Waaaitaminute...

                                  Citizen 20.1.01

                                  'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

                                  O 1 Reply Last reply
                                  0
                                  • I Ian Uy

                                    Sadly, I am one of those mathematically-troubled student whose taking-up Computer Science. I've barely passed all my math subjects (never failed one though) and I had a hard time in my Automata and Algorithms Complexity (Big o stuff) subjects. However, I aced all my programming subjects including Data Structures and Artificial Intelligence. I also aced all software development subjects. How important are those (Automota, Algorithms...., Mathematics) subjects in a Software Developers life? Am I doomed? Am I the only one who is stupid enough to take Computer Science when I know for a fact that I'm stupid in Math? :^)

                                    It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                                    G Offline
                                    G Offline
                                    goodideadave
                                    wrote on last edited by
                                    #60

                                    As a bunch of people have said, unless you have your heart set on building software that requires math knowledge, don't worry about it. I have been a business applications programmer for a long time, and I do 'way more string handling than anything else. Just know what you don't know, and seek help with it. As Dirty Harry said (through clenched teeth): "A man's got to know his limitations."

                                    Someone's gotta be the last to know, but why is it always me?

                                    1 Reply Last reply
                                    0
                                    • I Ian Uy

                                      Sadly, I am one of those mathematically-troubled student whose taking-up Computer Science. I've barely passed all my math subjects (never failed one though) and I had a hard time in my Automata and Algorithms Complexity (Big o stuff) subjects. However, I aced all my programming subjects including Data Structures and Artificial Intelligence. I also aced all software development subjects. How important are those (Automota, Algorithms...., Mathematics) subjects in a Software Developers life? Am I doomed? Am I the only one who is stupid enough to take Computer Science when I know for a fact that I'm stupid in Math? :^)

                                      It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

                                      G Offline
                                      G Offline
                                      GuyThiebaut
                                      wrote on last edited by
                                      #61

                                      I am mathematically challenged as well - this has not stopped me from being a successful DBA and writing image comparison, voice recognition etc applications. I have worked with Cambridge University mathematics graduates(who have 1sts!) and had no difficulty understanding complex algorithms they were designing and also, at times, surprised them with brilliant ideas :-\ Read my signature. Don't give up and most importantly find a way to find enjoyment in your work/study. Good Luck Guy ;)

                                      Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
                                      1 Reply Last reply
                                      0
                                      • P Paul Conrad

                                        Shog9 wrote:

                                        i had pretty much the same attitude: "i'll never use this, so why remember it?"

                                        Well, the same thing here. I figured I'd never need it, came across the need for all that good calculus stuff, popped open my old calculus book and it all came back. Just like riding a bike, once learned how, it pretty much sticks for the most part :rolleyes:

                                        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                                        S Offline
                                        S Offline
                                        Shog9 0
                                        wrote on last edited by
                                        #62

                                        Heh, then you must have a better grasp of it than i do. :-O

                                        Citizen 20.1.01

                                        'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

                                        P 1 Reply Last reply
                                        0
                                        • S Shog9 0

                                          Heh, then you must have a better grasp of it than i do. :-O

                                          Citizen 20.1.01

                                          'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

                                          P Offline
                                          P Offline
                                          Paul Conrad
                                          wrote on last edited by
                                          #63

                                          I do have a better grasp on certain aspects of calculus now, than when I was in college. Could have used what I figured out about it when taking the exams back then :sigh:

                                          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups