I am struggling with relatively simple algorithms. Am I doomed?
November 23, 2009 2:38 PM
Subscribe
ProgrammingFilter: Just how lame is it that I can't come up with (create from scratch) a string matching algorithm? Can I still become a programmer? I need your honesty.
Coming up with a simple string matching function is one of the problems I've been working on for an intro programming class: i.e., determine whether the second string can be found in the first string and return $found = true or false.
My sense is that, for any semi-intelligent trying-to-learn-programming Person Who Applies Herself, this should not be all that difficult. I think of myself as pretty darn intelligent. And yet, I've put about 10 hours into this so far and am ready to conclude that I CANNOT DO THIS. Yes, I've broken the problem down, I've tried to draw flowcharts. I've made many starts and stops. Ok, given a cave and maybe 3 days, I could probably to do it. But that's not the point. I should have been able to figure this out by now.
I have a background in literature and just don't have what they call a 'natural aptitude' in math and logic. Up until now I've told myself that it's ok not to have a natural aptitude in something: hard work and practice will get me where I want to be. At least, that's what I thought until right about now.
My question is this - and tell me the truth. How ________ (insert derogatory adjective describing my intelligence) am I for not being able to come up with this algorithm? And please be honest. Should I start reconsidering my plan to become a programmer?
Thanks in advance.
posted by kitcat to education (44 comments total)
7 users marked this as a favorite
What are you using?
posted by krilli at 2:46 PM on November 23, 2009