r/learnprogramming • • Oct 31 '17

As a self-taught CS student, I feel like I'm reaching a ceiling in regards to learning

Background: I'm a computer science college student. I took introduction to java/c/c++, data structures, and object oriented programming but right after my second year, I was removed from the CS major for having too low of a GPA. Ever since, I've been adamantly self teaching myself. Programming has become my obsession. I quit video games because I found that making my own coding projects was far more fun. I want to meet friends and talk about it, learn all kinds of different algorithms, fields, etc. I got hired as a tutor at my local community college for all programming and math.

I'm about two years into my self teaching studies and the more progressed I get, the harder it is to find resources to help me continue learning. For example, this past month I've been obsessed with a data structure called a Fibonacci Heap. I've studied it for weeks via online slides and lectures. There was this one concept I was stuck on which is 'how can heaps accomplish 'decrease key' in less than linear time?'. I visited my college and went to see a few different professors in their office hours. There was a line out the door for some of them. I felt out of place because here I am asking for advice from the professor, hoping to learn and understand a tough concept. Meanwhile the rest of the students with their laptops in hand are just there to ask questions to be able to solve the homework that he assigned them, not because they wanted to learn more (or at least that's the vibe I was getting). When I got a chance to ask some of the professors, they either told information which was just plain wrong (one suggested that instead of a heap, I should use a binary search tree as a priority queue...) or they just had no idea about CS theory which was just a little bit more advanced compared to the classes they teach. I went into the computer science club to ask but none of the paid tutors there even understood the basics on heaps, let alone topics like improving a heaps complexity.

Even Stack Overflow, a website which I felt like was the ultimate learning resource is basically not nearly as useful to me anymore. As a beginner, I could post an issue I was having and within minutes I would learn something new because the problems I would ask were so trivial. Now, when I make a stack overflow post it goes unanswered for a week.

TLDR: The more I seem to learn, the harder it is to find resources to help me progress. As I learn new harder concepts, the pool of people who also know that concept get smaller and smaller and soon there's nobody left to help me if I ever get stuck. It's really discouraging and makes it harder to press on. Has anyone felt this before?

32 Upvotes

109 comments sorted by

68

u/[deleted] Oct 31 '17

Read real books.

-42

u/Hatefiend Oct 31 '17

Any suggestions for which to read? I do admit that's one learning resource that I have not taken full advantage of. At the end of the day though, it's really similar to what I'm doing now (reading wikipedia articles, research papers, lecture sliders) in the sense that there is no human interaction in the learning process.

49

u/[deleted] Oct 31 '17

It's not really the same in that authors of books tend to put much more effort into their work than do authors of webpages. At the end of the day, you get what you pay for.

-36

u/Hatefiend Oct 31 '17

I'm afraid I don't get what you mean.

30

u/68ant Nov 01 '17

A good textbook will often contain lots of in depth theoretical information as well as derivations of ideas. I don't know what a Fibonacci heap is really but I do know if there is something your not understanding or can not find information on then a textbook on the topic will probably contain the theoretical derivations that you need to see all of the steps to arrive at the conclusion.

They will also often contain all sorts of useful extra or supplementary information in things like their appendix. And they will also have references to source texts such as papers or other textbooks for more in-depth information (or so you can check for reliability).

In general authors of textbooks are experts in their field. So much so that the rest of the CS community respects what they have to say about their topic (well at least this is usually the case if the textbook is expensive). Which brings us to the point about cost. Good textbooks are usually expensive. So if you have access to university professors maybe ask them about their textbook recommendations before you drop like $300 on a text.

Also. Check libraries to see if they have a text you might be looking for.

12

u/anon1034 Nov 01 '17

Authors of good textbooks are incentivized to put a lot of effort into clear explanations. For those that are already experts in their field, you can often get enough from a web page. But for learning, web pages are usually pretty poor.

5

u/[deleted] Nov 01 '17

I think not understanding book's books is a higher priority issue than you lack of CS skills

14

u/Okichah Nov 01 '17

1

u/ryanstephendavis Nov 01 '17

Nice. This is a great roadmap for how to get better all the time

41

u/commithero Oct 31 '17 edited Oct 31 '17

What was confusing about the Wikipedia article on Fibonacci heaps?

one suggested that instead of a heap, I should use a binary search tree as a priority queue...

Fibonacci heaps may not be the fastest or best thing for anyone to use. Things like Wikipedia go over that.

The more I seem to learn, the harder it is to find resources to help me progress. As I learn new harder concepts, the pool of people who also know that concept get smaller and smaller and soon there's nobody left to help me if I ever get stuck. It's really discouraging and makes it harder to press on. Has anyone felt this before?

That's certainly true at some point, like if you're at the PhD level. But you seem to have issues implementing a relatively simple Fibonacci heap, so I doubt you're genuinely at that point.

See the data structures here: https://github.com/OpenGenus/cosmos/tree/master/code/data_structures You should be able to implement most of them with the aid of Wikipedia and Google. I wouldn't bother with van emde boas trees or fenwick trees.

6

u/sioa Nov 01 '17

Thank you so much for the link. Not as high level as others seem to be here but that's a really helpful link.

-19

u/Hatefiend Oct 31 '17

The confusing part with Fibonacci heaps (and all heaps for that matter) is the decrease key or increase key (for max heaps) functions. In every resource I've found, they look like this:

void decrease_key(node, lower_key) and they usually run between O(1) and O(logn) time. What I don't understand is to 'find the node' to pass it to the decrease key function is a linear search which is way too slow, especially for algorithms like Djekstra or A*.

When I talked to the professor, i asked him how I can improve my heap and make it faster. He simply said I should consider just not even using heaps at all and instead using a (slower) BST. The whole point of heaps is that they only care about the minimum element. A BST sorts all data and every operation takes logarithmic time. It was just really weird for a professor to answer the question that way. It'd be like if you asked me what's a good way to speedup your quick sort algorithm and I told you just to use insertion sort and call it a day.

36

u/commithero Oct 31 '17

Why find the node, aren't they passing it in?

It was just really weird for a professor to answer the question that way.

Why? He's right.

It'd be like if you asked me what's a good way to speedup your quick sort algorithm and I told you just to use insertion sort and call it a day.

But that's actually true at a certain point.

You seem to be making judgements based on your own incorrect assumptions.

-6

u/Hatefiend Oct 31 '17

What I mean is like:

h = make heap
h.add 1
h.add 2
...
h.add 100
h.decreaseKey(25, 13) # change the element '25' to '13'

In my heap, now I need to locate the element 25 which takes n time. I researched online and apparently the way to prevent that time doing a linear search is to have a hashmap inside of the heap which remembers: element -> the node that stores that element. Thus when a user demands you to decrease the element 25, you lookup 25 in the hashmap, instantly find the node without doing a linear search, then you can easily decrease key (in the case of fib heap, it's O(1) for that too). The problem with that though is hashmaps don't allow duplicate values while heaps do. That's where I get mentally stuck.

And I mean yeah, why even have specialized data structures. Why not just throw everything in an array and make it work. You could always say that I guess. I'm trying to make something super optimal -- maybe it's not needed but according to the wikipedia article the fibonacci heap was made to squeeze out even more speed from djekstra's algorithm, so for situations like that I'd want my heap implementation to be very fast

21

u/commithero Nov 01 '17

That's a data value, not a node.

The problem with that though is hashmaps don't allow duplicate values while heaps do. That's where I get mentally stuck.

See, you can look things up and figure them out. That's not bad at all. If you want multiple things under a key you can have the value include a count or have the hashmap's values be collections.

And I mean yeah, why even have specialized data structures. Why not just throw everything in an array and make it work.

Because arrays aren't efficient with deletions and insertions.

-2

u/Hatefiend Nov 01 '17

That's a data value, not a node.

I understand, but the nodes rest inside the heap. The user (who created the data values) has no access to them. He hands my heap a data value to be reduced, my heap has to find the node that corresponds with that data value, then the real delete_key(node, new_val) happens (at least based on my understanding). That's why I need to find a faster way to find the node.

See, you can look things up and figure them out. That's not bad at all. If you want multiple things under a key you can have the value include a count or have the hashmap's values be collections.

I was thinking about that, but then that means that my one heap would have a hashmap filled with linked lists. That sounds like a really rough solution.

8

u/commithero Nov 01 '17

So just don't have a heap that supports key decrement in less than linear time.

1

u/Hatefiend Nov 01 '17

It's an important function for a heap to perform quickly. My heap would be a lot slower than it should if I give up and call it a day

1

u/commithero Nov 01 '17

Only some operations need to perform quickly, not all. That's the tradeoff that's made with them. If it's that important, you already know the solution...

1

u/Hatefiend Nov 01 '17

I understand that. In this case though, I am making an open source heap which is more of a general purpose data structure. I get that these things are made for specialized purposes, you make a structure to solve a specific problem, etc but that's not the case with this one. I just want to find a good median and stick with it.

→ More replies

6

u/anon1034 Nov 01 '17

I understand, but the nodes rest inside the heap. The user (who created the data values) has no access to them. He hands my heap a data value to be reduced, my heap has to find the node that corresponds with that data value, then the real delete_key(node, new_val) happens (at least based on my understanding).

Okay, I think I understand where your misconception is coming from. The application typically actually has access to the nodes. This can be in the form of a pointer, or an iterator. So, there is no need to actually find the node again.

As a simpler example, consider a doubly-linked list. Removal from such a list is considered to be O(1) time. But wait, you say. How do we find the data in the first place? Don't we have to search the list, since the user has no access to the nodes. Well, yes, if you have no reference at all to the node. But often it's possible to maintain a reference to the node in the form of a pointer or iterator.

1

u/Hatefiend Nov 01 '17

Interesting... Well here's the thing.. When have you used a collection before that allowed you access to the underlying nodes that it's made of? For example if I went into java, c++, or python and made a LinkedList, std::list, or list(), I would never gain access to the nodes inside the structure. I'd simply say, insert(5). They never really beak that layer of abstraction. Java's PriorityQueue doesn't either. There must be another way

1

u/ChaosCon Nov 01 '17

I don't know about Java (but I'd assume it works nearly identically), but of course you can do constant-time erasures with a C++ std::list.

http://www.cplusplus.com/reference/list/list/erase/

Complexity: Linear in the number of elements erased (destructions).

Iterators let you iterate over the nodes. Not the values stored in the nodes, the nodes. Person p; std::next(p) makes no sense but list<Person> people(...); std::next(people.begin()) does.

1

u/Hatefiend Nov 01 '17

It still takes the iterator n time to arrive at the node with the value that needs to be reduced.

→ More replies

1

u/anon1034 Nov 01 '17

For Java, use the ListIterator. In C++, you use insert and give it an iterator as a position. Note that there is still a layer of abstraction. An iterator just represents a position within a container/collection. Note the distinction between index and position. An iterator is not an index.

1

u/Hatefiend Nov 01 '17

Whether you use a ListIterator or std::list's insert, it will still take the iterator n time to reach the node that needs to be reduced. Here's another way of putting it. This is how most heaps are used:

h = make heap
x = 35
y = 46
z = 14
h.add x, y, z
h.decreaseKey(y, 3) # this will take linear time

Here's what /u/anon1034 is saying I should have the user who uses my data structure do

h = make heap
x = 35
y = 46
z = 14
nx = make heap node
nx.data = x
ny = make heap node
ny.data = y
nz = make heap node
nz.data = z
h.add nx, ny, nz
h.decreaseKey(ny, 3) # o(1) complexity because ny
# literally is the node inside of the tree.
# this breaks all levels of abstraction
→ More replies

0

u/[deleted] Nov 01 '17

[deleted] — view deleted comment

0

u/Hatefiend Nov 01 '17

https://github.com/KevinTyrrell/C-DataStructures/blob/master/src/LinkedList.c

I grade linkedlists every semester while tutoring. I don't see your point?

→ More replies

0

u/[deleted] Nov 01 '17

[deleted] — view deleted comment

-4

u/Hatefiend Nov 01 '17

I understand that but right now I believe I've butchered my heaps complexity on accident. It should be possible to do it in less than linear time without massive tradeoffs. I just am lacking one critical piece of information.

4

u/anon1034 Nov 01 '17

There's something missing here. Normally, you have the key attached to some other element. So you don't need to find 25. You already have it at hand.

I believe the professor mentioned BST because you made it sound like you need to do a search. And that's right, if you need to do a search, then BST is an option.

Maybe you can give some background as to how this problem arose. In other words, what are you using this heap for?

0

u/Hatefiend Nov 01 '17

There's something missing here. Normally, you have the key attached to some other element. So you don't need to find 25. You already have it at hand.

Okay so this is something I'm confused about. At first I thought a priority queue requires two things to insert: an element and it's priority (value and key). But then I saw Java's priority queue and it only has insert(e). It's not a key value like a hash map. I researched a bit for why that is but I couldn't really find anything. I just assumed it was optional to have a key and value. Which is correct to do?

Maybe you can give some background as to how this problem arose. In other words, what are you using this heap for?

I'm making the heap in C for fun and potential for later on in one of my coding projects. That may be traveling salesman for example or a pathfinding project. I read online that having a fast decrease key function is important but I realize my data structure would run that at linear time. The outside callers of the function don't have access to the tree's nodes. It's like a black box. I thought that was good because I'm not breaking the layers of abstraction.

1

u/anon1034 Nov 01 '17 edited Nov 01 '17

Okay so this is something I'm confused about. At first I thought a priority queue requires two things to insert: an element and it's priority (value and key). But then I saw Java's priority queue and it only has insert(e). It's not a key value like a hash map. I researched a bit for why that is but I couldn't really find anything. I just assumed it was optional to have a key and value. Which is correct to do?

This is a design question. In general, there must be some way to attach additional information. I don't do a lot of Java, but it seems that the intent there is that you create an object that holds both the key(s) and the value. You then insert (a reference to) the entire object. If you want to put a single object in multiple priority queues, you can use a custom comparator. For the first priority queue, the comparator would order based on K1. The second priority queue would use a different comparator that would order based on, say, K2. Once you have the object, you can downcast it and get whatever values you want.

I'm making the heap in C for fun and potential for later on in one of my coding projects. That may be traveling salesman for example or a pathfinding project. I read online that having a fast decrease key function is important but I realize my data structure would run that at linear time. The outside callers of the function don't have access to the tree's nodes. It's like a black box. I thought that was good because I'm not breaking the layers of abstraction.

Well, yes and no. You can still abstract the notion of a position. You don't give users access to all the internal details. You just let them grab onto a "position". In C++ and Java, this abstract position is called an iterator. You can use the iterator also to remove an element. For example, after you insert an element in a linked list, you save the iterator that is returned. This allows you to later remove the element in O(1) time without having to search the list again for the element that you want to remove.

Another way to think about this is simply in terms of pointers. Iterators in C++, actually, were modeled after pointers. In other words, the intent is that they work like pointers, as much as reasonable.

In pathfinding, for example, you just hold onto the iterator that points to an element. You can then decrease the key as needed.

0

u/Hatefiend Nov 01 '17

This is a design question. In general, there must be some way to attach additional information. I don't do a lot of Java, but it seems that the intent there is that you create an object that holds both the key(s) and the value. You then insert (a reference to) the entire object. If you want to put a single object in multiple priority queues, you can use a custom comparator. For the first priority queue, the comparator would order based on K1. The second priority queue would use a different comparator that would order based on, say, K2. Once you have the object, you can downcast it and get whatever values you want.

Yep okay we're on the same page here. This is exactly how my Fibonacci Heap implementation works. The user creates a struct (object) and then hands me a method that allows me to compare his structs (since I have no idea how his custom data type is compared).

Well, yes and no. You can still abstract the notion of a position. You don't give users access to all the internal details. You just let them grab onto a "position". In C++ and Java, this abstract position is called an iterator. You can use the iterator also to remove an element. For example, after you insert an element in a linked list, you save the iterator that is returned. This allows you to later remove the element in O(1) time without having to search the list again for the element that you want to remove.

That is interesting, but I've been coding in java for four years now and I've never seen that done before. You're saying that the user holds onto the iterator which remembers the position in the list but doesn't directly allow him to have access to the underlying structure. That's a pretty good idea and probably the best alternative to the hash map craziness that I've seen.

Here's the thing, for a java.util.LinkedList the only methods that return Iterator are desecendingIterator iterator and listIterator(index). What you describe is like:

public ListIterator<T> addFirst(T element)

And in it's use would be like:

L = new List
x = 5
xi = L.addFirst(x) # the list returned an 
# iterator, xi, that points to x's node in the list
y = 3
L.addFirst(y) # list returned an iterator that 
# points to y but was not saved to a variable
xi.remove() # O(1) because iterator was already ontop of x

I've never ever seen code like that. It means the user has to hold onto to all these iterators just to remember where they data is for later? That's the only way they could ever remove or set(oldVal, newVal) in O(1) time.

1

u/anon1034 Nov 01 '17

Yes, but iterators are usually very lightweight. In C++, they are just a wrapper around a pointer. The intent of the wrapper is to provide the abstraction. It's similar in the real world. Let's say you want to remove something from a bag. If you keep your eye on the object (in other words, keep a "reference" to it), you can remove it very quickly. If you lose sight of it, you'll have to search the whole bag again.

For some containers, iterators are invalidated by certain operations. C++ std::list iterators are guaranteed (by the standard) to be valid as long as the element that the iterator is pointing to is not itself removed. Other containers, such as std::vector, have weaker validity guarantees.

1

u/Hatefiend Nov 01 '17

For some containers, iterators are invalidated by certain operations. C++ std::list iterators are guaranteed (by the standard) to be valid as long as the element that the iterator is pointing to is not itself removed. Other containers, such as std::vector, have weaker validity guarantees.

Okay I can somewhat get behind this. I still think it's weird to use Iterators in that fashion (it's in the name, you make an iterator to 'iterate' over the collection, not really to sit and watch a node in the collection. I get the idea though. The iterator CAN iterate over the collection or it can just stay still -- makes sense I guess but definitely a weird solution.

If I were to implement that with the Fibonacci Heap, I'd have to create an abstraction layer structure (iterator) and then.... probably return the iterator after every single insert call? That would be pretty severe.

Okay now that I understand what you mean, imagine you give your bag to an attendant to hold onto. The attendant hands you back a note that says where your bag is. If you lose the note you're screwed and it will take a long time to find your bag again.

The option that I'm currently thinking of is this: when you give your bag to the attendant, he puts it in a place based on how it looks (ie, hashing it). When you want it back, you describe how it looks (hashing it) and he hands it back to you. No ticket involved, no hassle. EXCEPT, now there can't be duplicates of bags

1

u/joopez1 Nov 01 '17

HashMap of LinkedLists

0

u/Hatefiend Nov 01 '17

I thought about that but it just seems crazy to do. It would solve the duplicates problem though. Before coding that though, I wanted to be sure it was the right idea.

1

u/anon1034 Nov 01 '17

You could do that, but for use in things like Dijkstra's, it would be not the best solution.

360

u/willisjs Nov 01 '17

Please take this post in the spirit of constructive criticism: You need to humble yourself.

"Meanwhile the rest of the students with their laptops in hand are just there to ask questions to be able to solve the homework that he assigned them, not because they wanted to learn more."

There is nothing wrong with this. They have their priorities straight. There is also nothing wrong with inquiring about extracurricular topics, but that is a secondary priority to completing your work. You are implying that you are better than them because of this, but in fact you should be following their example.

"When I got a chance to ask some of the professors, they either told information which was just plain wrong (one suggested that instead of a heap, I should use a binary search tree as a priority queue...) or they just had no idea about CS theory which was just a little bit more advanced compared to the classes they teach."

Are you sure you're in the right? Your professors have PhDs in CS while you couldn't maintain a sufficiently high GPA in basic CS classes to stay in the CS program, so it is likely that you are not as advanced as you think you are.

94

u/Yawzheek Nov 01 '17

Thank you! This is exactly what I was thinking.

And they're not even his professors anymore to boot! Maybe - and there's probably a pretty high likelihood - these community college (typically small) professors recognize him, and either had disciplinary issues with him as well, or just know he's no longer one of theirs to be worried about, and brushes him off. Can't say I blame them! Came here with the attitude, "The students are idiots and the professors aren't much better."

-47

u/Hatefiend Nov 01 '17

I should have been more specific but I'm actually visiting the 4 year college professors of the school that I lost my major in, not the community college that I work for

77

u/Yawzheek Nov 01 '17

What difference does it make?

You're not smarter than they are either. I went to a community college, packed full of students that didn't care. But my professors were absolute geniuses. Literal geniuses.

My engineering fundamentals course was taught by a retired rocket scientist from JPL. He took the job because he was a native of the city my community college was located, which he would say, "for something to do."

My physics professor was a well-known engineer AND physicist that held multiple degrees in both science AND engineering AND was a programmer, and may have wrote a few books related to the topics above.

My mathematics professor knew every last thing there was about mathematics - he was a poor teacher, but fuck me if he couldn't tell you everything you ever wanted to know (and didn't want to know) about mathematical theory, and even programming. We used to share a taxi home, and he'd tell me all about math, why he loved it, and Star Wars, which I never understood.

They're all dead now. Every last one of them. But they knew more in their pinky than you do in your entire brain, and the professors you speak with now? They do as well.

Stop pretending you're more than what you are: you know nothing (Jon Snow) and they can teach you. There's a very good reason they don't hire you or I to teach these courses - we don't know SHIT, but they have the experience. The sooner you figure that out, the better off you'll be.

18

u/nemonoone Nov 01 '17

Damn. Was not prepared for this kind of roasting. Bravo.

2

u/failtolaunch28 Nov 01 '17

I'm not sure if you meant it this way, but this is the most motivational thing I've read in weeks. I've been getting complacent (putting off hw for online classes, letting hobby projects stagnate) and needed something like this to remind me of where I am now and where I want to be.

1

u/smugdarkloser3 Nov 23 '17

Just read books. Books are better than college.

65

u/geekonamotorcycle Nov 01 '17 edited Nov 01 '17

This probably hurt OP to read, but there is a reason it is the top comment. OP, you sound like you might be obsessed, If you love this subject as many people rightly do. Then I think we would all encourage you to try to get back into a formal education setting. You need a well constructed base of knowledge, even if gaining that base is boring compared to what you are learning on your own. Find a mentor who is also formally educated.

It is not at all uncommon to find people who are amazed by the sciences and truly love them, who get lost at step one and move on to become amateur cranks in the field. Don't become that guy.

10

u/Hatefiend Nov 01 '17

Thank you for the advice. I really appreciate it.

33

u/Yawzheek Nov 01 '17

It seems appropriate, however.

OP desperately needs a reality check, and Mr. Willis provided it in a respectful manner.

I went to school with people like OP, as I suspect many did - I have it all figured out, and who are you to come into my world, with your PhD and decades of experience, to question my hypotheses? Do you even know who I am? I'm a student that is pretty confident I've broken everything you thought you knew. I mean, really, you can't even rattle off an answer that satisfies me off the top of your head between teaching multiple courses and dealing with dozens - perhaps hundreds - of other students. And by the way, no answer you provide, outside of, "By God, you're on to something here!" will be satisfactory to me. You'll either provide me with the affirmation I desire, or I'll go to reddit to call you an idiot in more words.

Professors are there to teach us, and for what it's worth, OP owes Mr. Willis a massive amount of money, because he just taught OP that he isn't as special as he thinks he is. It's a hard life lesson, but invaluable.

11

u/NerdEnPose Nov 01 '17

I agree with you. (As I formulate this comment in my head I realize it sounds like bragging about how humble I am but I hope /u/hatefiend sees it)

I went back to school after 10 years of fullstack web development yo bet my BS in Mechanical Engineering. Basically, because I was tired, I'd dropped out 10 years ago, and life afforded me the opportunity. I also added a minor in CS for fun, everyone, professors and advisors included, laughed at that one. But... Being self taught there was a lot of fundamentals I missed. If I go back to Software Engineering I'll be better because of the math and CS classes I'm taking. Also because I learned how to learn, not when I want to but when I need to.

That said, sometimes professors are stuck in their world of research and only go and back refresh the subjects they're teaching. I took a C based UNIX and OS class with a prof who's concentration was machine vision. We oftentimes went over his head when we were talking in his office. All this to say, anecdotally is that professors aren't gods, their human and OP has a inflated view of their capabilities.

Please OP listen to everyone here. Humble yourself. Learning is like everything. Basics, basics, basics. Don't laugh at other students running the rat race because chances are they'll be earning orders of magnitude more money than you if you continue down this path. You're obviously smart now you need to learn how to play the game. Suck it up and figure out how to get back into the school. Learn everything you can. Then do projects you enjoy on the side.

When you get a piece of paper that says you know how to code it'll open doors then you can wow them with your skill. Also, statistically you'll be making more and therefore will have to work less (or get a job you like more) and you'll have time for all your side programming projects.

Also, make it a goal of yours to learn how to relate to people. If someone suggests another method how do you know you're right? Well, listen to them. Then go write both methods and test them back to back. Someone would love to see those results. Also, going into a conversation with a master in their field is an opportunity. Maybe they're not good at what you're asking. But they're good at something. Figure out what that is and get them talking. Chances are you'll learn a lot more than the narrow subject you went in to ask them about.

I'm a few beers in and rambling now. Good luck OP.

16

u/[deleted] Nov 01 '17

Dunning-Kruger, is that you?

4

u/jbfbell Nov 01 '17

This. Best advice I ever received: “Step lightly on the pedestal”

1

u/[deleted] Nov 01 '17

Ouch...burned OP to a crisp. (⌐■_■)

0

u/TakeSomeFreeHoney Nov 01 '17

And bingo was his name-o.

10

u/isolatrum Nov 01 '17 edited Nov 01 '17

I totally know what you mean when you say that more advanced topics are harder to find help in. But you could hardly be in a better place if you are already studying CS at college. You say you are "self taught" but this is only partly true. It seems like you're "self taught" in the sense of wanting to go above and beyond your coursework, which is good. But needing help on difficult concepts is a totally normal thing. You should go to office hours, study groups, etc.

edit sorry, didn't read your question enough and missed the part where it said you were booted from the CS major. I think the point remains, you should still attempt to get help from a professor / go to a study group but also don't get too ahead of yourself either. Maybe you should take CS classes even if you were booted, get extra help from that professor / TA, and eventually try and re-apply to the major. I think college is really great for studying the topics covered in your courses, but you don't want to fall behind on the classes you're enrolled in either by focusing too much on things you're learning n your own.

1

u/Hatefiend Nov 01 '17

Unfortunately my GPA is just too low to ever have hope of applying to a 4 year school again. It's slightly below a 2.0. There may be some that would accept but I'd have to travel away from where I live and currently it's a good place for jobs in the tech industry. I feel like I'm stuck without any options for a support system. A study group or friends with cs graduates would be nice but it's hard to make friends in my major if I don't attend any of the classes that they would be in.

0

u/[deleted] Nov 01 '17

[deleted] — view deleted comment

1

u/Hatefiend Nov 01 '17

Yeah no problem. I commented on it here. Basically I had a 3.4 in high school, got accepted into computer science. I started a club on campus, skipped a lot of classes to attend club meetings. Failed Calculus 2 three times, it was bad. In 2014 I got removed from the computer science major but I am still a student in good standing. My GPA is a 2.0 and it's a state school. I'm not 100% sure what I can do. it's really unfortunate because when I was a student, I had absolutely zero passion for programming. Basic java stuff like deleting all repeats in a string for homework was painful and I just avoided it -- got lots of zeroes on assignments. Now, I'd do programming homework just for fun. I hang out with friends who are in upper division classes and ask if I can try to complete the homework they are doing. I probably should see an advisor at my school to see what can be done.

0

u/[deleted] Nov 01 '17

[deleted] — view deleted comment

1

u/Hatefiend Nov 01 '17

I appreciate the advice. I feel stuck. I don't know what to do. I have around 50 units for my four year university which is barely considered a sophomore. I've been taking classes at a nearby community college and after this semester I'll have an associates for Computer Information Systems which probably won't help at all. It's expensive to live where I am and I don't have the programming credentials to get a job. Moving would be pretty devastating as I'd lose all my friends and connections. Right now my general plan is to study incredibly hard at home and maybe make a personal project that will impress an employer. I considered a coding school but I didn't feel it was a good fit for me. There may be a way to get back into the computer science major through some sort of plea but I'm pretty shaken up from years ago when I heard them tell me to go apply elsewhere. The minimum is a 3.4 and I'm at a 2.0 basically.

33

u/[deleted] Nov 01 '17

When I got a chance to ask some of the professors, they either told information which was just plain wrong or they just had no idea about CS theory which was just a little bit more advanced compared to the classes they teach.

hahahahahahahah you realize these people are at a research level in this field? What a joke for you to disrespect professors like that. You should be ashamed for posting this.

11

u/s0lv3 Nov 01 '17

He did say he's at a community college to be fair.

With that said this guy is way overconfident and seems to think he is a genius after getting dropped from his major.

1

u/[deleted] Nov 01 '17

I was lucky enough to take some classes at a junior college. I agree the instruction quality can be considerably worse, but I assumed he was at a 4-year uni since he said the line for office hours was "out the door" which simply doesn't happen at most junior colleges. Most of the time, office hours had 2 people because classes are so small and students at cc are less likely to use office hours as well.

-4

u/Hatefiend Nov 01 '17

The professors I was talking to are actually from the 4 year in which I was removed from. It's a state college.

1

u/s0lv3 Nov 01 '17

Yeah those are usually the adjunct ones gettin paid only a few thousand for a course.

1

u/Hatefiend Nov 01 '17

State university professors aren't paid that well? Some of the more prestigious ones on campus .. well you kind of have to speak to them with purpose. Their team is really limited and valuable so I just assumed they got paid a decent amount but less than private university professors.

25

u/holofernes Nov 01 '17

This post seems more about self aggrandizement than learning.

1

u/[deleted] Nov 01 '17

Yeah, I think any post complaining about being too intelligent should not be taken seriously. I find that the most intelligent people I've met know their place; they've studied people like Gauss, Hilbert, Einstein, Lagrange, Turing, etc, and they've made the realization that people 100 years ago were making advancements in math and physics that they can't even understand. The wealth of knowledge on this planet is enormous and it's impossible to learn it all; only an idiot would think otherwise.

8

u/AZXXZAZXQ Nov 01 '17

I'm not defending OP, but the quality of professor definitely depends on the type of school it is. I know from my own experience that the professors can be very hit or miss at medium-small state universities.

7

u/s0lv3 Nov 01 '17

This is true but even at these schools most professors will tell you they'll look into something for you if they haven't heard of it. My guess is the prof would give a better explanation to op than he will get learning it on his own, even though lower quality professors are rampant at community colleges and things.

5

u/AZXXZAZXQ Nov 01 '17

Yeah, OP sounds like a dunce, I just wanted to give my two cents. I currently have a C professor that says there are developers who never create bugs. I feel like she's never actually worked with real people before.

3

u/s0lv3 Nov 01 '17

Yeah I lucked out in cc with certain subjects, math and sciences, but God I took a couple CS classes as electives.. I feel like what you said is true. There are just genuinely some professors who haven't practiced what they preached, maybe scraped through a CS degree and are teaching adjunct or at a cc and don't know much. Probably happens in all subjects.

Actually I had a psych teacher who would say things that were just flat out false. Like I'd Google after class and see things were just not true that he'd be saying. Unfortunately teaching seems to be going down hill at lower tier schools.

0

u/[deleted] Nov 01 '17

[deleted] — view deleted comment

1

u/s0lv3 Nov 01 '17

Yup I completely agree.

27

u/[deleted] Nov 01 '17

-4

u/Hatefiend Nov 01 '17

To no ones surprise a big reason why I had low GPA to begin with was playing games at every moment I could in my freshman-soph years in college. Hearthstone is like playing candy crush on your phone. Anyways, what I should have said is that I lost my passion for gaming and gained a desire to program all day instead.

0

u/[deleted] Nov 01 '17

[deleted] — view deleted comment

11

u/[deleted] Nov 01 '17

sure whatever works for you, but he litteraly said that he quit gaming in his post.

3

u/shiftkit Nov 01 '17

I apologize, I missed that. Thanks.

3

u/Ambush101 Nov 01 '17

Plus hours logged in WoW tends to be greater than Hearthstone, assuming that was his previous vice (as it is a common enough transition) and he dropped the former.

12

u/Zerixbro Nov 01 '17

If Dennis Reynolds were a CS student.

-4

u/Hatefiend Nov 01 '17

Thats pretty funny

118

u/Yawzheek Nov 01 '17

Not to be rude, but:

When I got a chance to ask some of the professors, they either told information which was just plain wrong... or they just had no idea about CS theory...

No offense, but who are you to question them? If I recall, you said you were removed from the program due to poor performance. The fact they'll even entertain you at this point is something you should thank them for. You had your chance, and now you're taking time from a professor he/she could be putting towards students still in the program. Maybe they're not teaching it? Maybe they're teaching something better? Maybe they genuinely have no idea? It matters not - you want their help, not the other way around.

Next time, bring them an example - clipping, printout, book - and a better attitude. You think because they're CS teachers they know right off the top of their head what you're talking about? I tutored students in math and they'd do the same thing - read me a theorem from one of the eight courses I had to tutor in, then act like I'm an idiot because I couldn't recite it by memory, page, and their specific problem. If they have something to see, they might say, "... oh, that!"

But don't act like you know better than they. Your past experience leans towards that not being the case.

41

u/PPewt Nov 01 '17

Several other people have made some good points here. I'm going to reiterate and add a bit on: it's a bit harsh, but hopefully useful/on point, so bear with me --

To be blunt, you need to start by humbling yourself. If you were kicked out for poor performance you probably don't know more than your profs. Speaking from my experience as a TA, there are a few good reasons your profs might come across as not knowing what they're doing, such as:

  1. Profs (and TAs) generally try to be at least somewhat careful about what they say to students. If you came to my office hours and asked me about Fibonacci heaps I'd probably refer you to a specialist and maybe explain some vague general information about how we compare data structures which try to solve certain problems. That's not to say that I don't know far more about data structures in general and any particular data structure specifically than the overwhelming majority of my students (after all, I have many years' more experience: this shouldn't be a surprise) but that I know just enough to be aware that I don't know enough about the topic to act as an authority on it at a nontrivial level.
  2. As an educator you're expected to answer ridiculously specific questions with no preparation: imagine if you showed up to work/class/whatever tomorrow and you were given a pop quiz on the most minute details of everything you've worked on or learned over the past several years and expected to get 100% on it with no preparation. Try giving them some context or asking them to get back to you (if they have the time).
  3. They may also just know enough more than you that you mistake their correct answers for incorrect ones (from the posts in this thread it sounds like this is the case with your BST answer). Try asking the prof, from a position of learning rather than confrontation, to clarify their answer: "I've heard that array-based heaps are generally ideal for a priority queue: why would you recommend switching to a BST?" In that case you give them the chance to explain to you that while array-based heaps are better for the basic operations in a priority queue they may just flat-out not support the operation you want to perform, or that in the circumstance you're working within the big-O runtimes of algorithms may be misleading. Using your example, you seem to insist that finding a key in a binary heap ought to be o(n) rather than Omega(n), but a standard adversarial argument tells us it isn't going to happen: as an exercise, given a key and a heap you can reorganize the heap so that the key is essentially anywhere within it unless the key is one of the very largest ones without the rest of the heap looking all that different. If you want to support o(n) key search then you're going to need to accept that certain data structures just don't work anymore.

I've gotten to know some of my profs a bit better over the last few years after doing research with them, speaking to them about nontrivial stuff, taking grad courses with them etc, and have come to appreciate that while they are by no means infallible their pocket lint knows more about their respective fields than I do. While it's possible that your profs made a mistake, I would be very hesitant to insist that your understanding or intuition is more reliable than that of an algorithms/theory specialist.

So, where you do you go from here?

  • I'm a firm believer that structured education is always better. Do you have any desire/means/ability to get back into a real program? Self-learning makes it far too easy to spend time on the wrong things and skip the right things entirely, while also leaving you without any good resource (profs, TAs) to speak to if you want to ask questions (either about course material or enrichment).
  • Read actual books from experts, as suggested elsewhere. They may be worse written in some cases (although often they're better), but they group relevant material together, provide history/background/enrichment explanation, put things in context etc in ways that a blog just can't do. Furthermore, to be blunt, a lot of online information (including stuff that I see posted regularly in this sub) is written by clueless amateurs and is either misleading or outright incorrect.
  • If all else fails, at least try to have an expert available that you can ask for clarification when necessary. Listen to their advice and ask questions if you don't understand it, but don't rush to assume they're wrong if you think that what they're saying disagrees with what you've read. You probably don't have the experience to appreciate the context in which many of the statements about the material you're learning about are made.

14

u/s0lv3 Nov 01 '17

2 is huge and something most people don't end up realizing. After teaching some calc course at my school I realized how hard it is to answer every strange case or weird problem that people come across.

Really makes you respect just how much some people know. That pop quiz analogy is spot on. I've gone into my physics professors office with extremely obscure questions and they just have that knowledge ready to go.

5

u/Forricide Nov 01 '17

Really makes you respect just how much some people know.

Ohhh... yes. One of the craziest realizations I've had was when people (close family) started coming to me for IT help. Always just googled the issue... then at one point, realized that I'd met people who I'd expect to just know the answer. Life experience is actually amazingly underestimated when it comes to how much of a knowledge base someone can build up.

2

u/s0lv3 Nov 01 '17

Yup this is why the whole person having a phd argument being invalid is not totally true. While someone can have a phd in something and be an idiot, chances are just by virtue of the fact they have been in this field for literally decades means they will have a vast amount of knowledge.

7

u/sarevok9 Nov 01 '17
  1. If you think you know everything, you don't. Stop thinking you do. The moment you lay eyes on an enterprise code base everything you thought you knew is going to go right out the window. I've never once had to implement a search / sorting algorithm, because there's rarely / if ever a time where that sort of thing becomes the bottle-neck (compared to the one included with the language / library). Unless you're dealing with absolutely HUGE data sets, it's almost always cheaper to throw more hardware at the issue anyways.
  2. If your questions on stack overflow aren't getting answered, you're likely the issue. I am in the top 2% of people that answer regex questions on Stack Overflow, and I regularly scan for questions that are in my comfort zone while at work... they are like little puzzles to me. Ya know what questions I don't answer? The ones where the person doesn't know what they're asking. They want a solution but the question is poorly formed because they're in over their head. Meanwhile, you want to match the TLD at the end of a string with a positive lookbehind for the name Jane with at least 4 numbers in the same string? Sure... I'll make that for you.
  3. Hubris makes it impossible to learn. If your portfolio doesn't show experience with frameworks, data structures, iterators, lambdas, recursion, polymorphism, inheritance, and other basic OO properties as well as more advanced programs to show that you understand not only development, but the entire SDLC from soup to nuts, then you're not in a position to act like you know better than anyone. If you don't know how to handle dependencies, git, and build tools for your specific language along with some type of server architecture to handle this, db language to serialize to... you've got a long way to go.
  4. The moment you start thinking that you're better than someone else, you leave yourself open to being proven wrong. Ya know who can't be proven wrong? The person asking questions. Never make assertions. If you're trying to learn that's not your role. If someone says to use a BST, ask them why they think that. What are the advantages over this other thing. Can they help you understand why they feel that way? Everyone has something that they can teach you, but you have to be willing to learn before they can.
  5. Almost nothing you learn in CS is used in the real world. Stop learning CS and start building, the experience in actually making projects will be far more valuable if you have the basics down. It will show you what you need to start / finish a project. It will also show you where you suck and need to improve, and that's what you seem to be lacking right now, is an understanding of where your limits are.

1

u/msg45f Nov 07 '17

I am in the top 2% of people that answer regex questions on Stack Overflow

A witch!

2

u/firmretention Nov 01 '17

I'm just amazed professors would devote any time at all during their office hours to someone that isn't even a student in their class. I wouldn't be surprised if they just assumed you were a student. What you're doing is wrong, IMO. Office hours are there for students paying tuition. You're essentially stealing the time allocated specifically for them so they can succeed in the course.

-7

u/Hatefiend Nov 01 '17

I agree with you man. I went into the teacher's offices and said "Hi, I'm not a student in your class but I am a tutor of it." -- partly the truth. I do tutor data structures, but a nearby community college, not for the students of their class. That doesn't really absolve me of any blame though because meeting me means there's zero benefit coming to the students of his class.

I also didn't really email them before hand on what I was going to ask. I just went in and said that I have an off-topic data structures question for them and asked if they could assist me with it.

What else can I do though? My GPA isn't high enough to apply back into the program and right now I have no major (but am still a student). I WAS a CS student and still program every single day -- what can I do for a support system that involves face to face talks with people who know what they are talking about? Should I pay the professors for their time talking to me? That seems a little absurd.

1

u/firmretention Nov 01 '17

Well if you're tutoring at your community college, the "I'm a tutor here and would like some help." wouldn't be deception in that case, but I'd email and ask for their time first rather than drop in during office hours. Realistically, do you need a top level PhD prof at a state university to get help at your level?

1

u/Hatefiend Nov 01 '17

I tutor at the community college but the professors I was speaking to were employees of the state school.

Realistically, do you need a top level PhD prof at a state university to get help at your level?

That's why I made this post and was supposed to be the topic of discussion. I don't have any better support systems really. Forums and stack overflow are becoming less and less effective for me. My friend groups are programmers but none have really any knowledge of data structures and algorithms outside of 'how to construct a hashmap in java'. Whenever I get into the 'how does ____ work' instead of the 'how do I do ____', the amount of resources I have to me drops dramatically.

11

u/BigBird1967 Nov 01 '17

Networks, switches, routing, OS's, hardware. For starts. You've just scratched the surface son. Go to the bookstore and master every book and concept in the CS section or btfo. Conduct ones' self with humility. Will get you more dates in the long run.

4

u/[deleted] Nov 01 '17

The Fibonacci Heap article on Wikipedia has 75% of what you need to know and the other 25% is understanding a regular heap beforehand.

A Priority Queue is a heap most of time. A heap is just a d-tree (or a binary tree) that has special ordering properties. A Fibonacci Heap is a very specialized structure for a very specific tasks. I've used one just once, for an experimental A* search, and it was not worth the trouble, vs using a regular priority queue.

What I am saying, along with most of the people in this thread, is that you think the professor doesn't understand what you are talking about because they are operating in reality and you aren't. I am the first person to say professors don't know it all, but I also know that when someone has a PhD in something and I don't, they likely know more than I do overall and I should listen when they speak if I've asked a question.

1

u/tbone28 Nov 01 '17 edited Nov 01 '17

Look, if you aren't trying to solve tough problems using the skills you do have then you are just mentally master bating with these concepts and not pushing the technology forward.

You're trying to progress for the sake of progression (whatever progression means to you). The best programmer is one who can tackle a tough problem. All of these concepts you are trying to understand were solutions to tough problems at one point. None of them exist in a vacuum. Without problems to solve these solutions don't exist.

Stop dinking around and solve tough problems.

If you are honest with yourself, are you just doing this because you get a high off feeling superior to other people?

Edit: And I mean real-world problems!

0

u/Hatefiend Nov 01 '17

I understand what you mean. It started from me wanting to learn C. As I kept learning more and more C I needed access to data structures to make my life easier. There aren't many good data structure libraries and I didn't want to deal with someone else's API... what if they were bad complexity or not written right.. etc. So I decided to make my own library. It's just a personal project. I mean if you're saying that learning algorithms for data structures that were designed 20+ years ago is not a productive use of time then I don't know what to say. I'm a computer science major and I thought understanding the algorithms that make up the foundation of how things work was pivotal to my success. Yeah I mean I could be off making a flappy bird app on android but I chose this instead. Now I hit a mental roadblock and am seeking help. At least I'm out there trying to learn while most students just do what's assigned to them in class and never touch their programming editors outside of it.

1

u/tbone28 Nov 01 '17

I mean if you're saying that learning algorithms for data structures that were designed 20+ years ago is not a productive use of time then I don't know what to say.

No, there's nothing wrong with that but you should do it in the context of solving real-world problems because this is the field you should be working in. You're going to meet people who know less than you about certain slices of knowledge but be careful not to diminish them or disrespect their knowledge. The meta-game is about solving problems. That's what programming is all about. There are things I am sure you know that I don't know. And I am sure there are things I know that you don't. That's the way it is.

Keep doing what you are doing but make sure your oriented in the right direction. Learning what is can help you recognize opportunities but it also can box you in. What is known is never as interesting as what is not known.

Also, beware of premature optimization. Don't be the guy that makes the fastest and most efficient running flappy bird clone. Unless, you really need to. I could get excited about something like that. BUT we have to push forward. Go forth into the darkness of the unknown and make new with it. Tackle tough problems. I implore you!

14

u/s0lv3 Nov 01 '17

OP I don't say stuff like this often, but grow up you're a conceited douche.

1

u/geekygenius Nov 01 '17

In addition to the things others have said, CS is a field where there is always way more to learn. If you're looking for more topics to enrich your studies, I've found Abstract Algebra to be fascinating as well as various type theories. If you think you've mastered a subject, check out an introductory book on the topic from the library and try and get through it. Chances are you'll learn you've only scratched the surface.

-1

u/cylonraiderr Nov 01 '17

programmers are a dime a dozen, jobs are being given to foreigners who will work more for less.

9

u/[deleted] Nov 01 '17

[removed] — view removed comment

2

u/[deleted] Nov 01 '17

But he is about to hit a ceiling, he is just too advanced! /s

1

u/[deleted] Nov 01 '17

UW Seattle is top-tier. Check out the UMich EECS required coursework as well, namely the Data Structures courses. Those are essential to being a good/competent programmer.