Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Deus Rex
Mar 5, 2005

JawnV6 posted:

Actually you're hitting a bunch of elements of x multiple times in a goofy ordering so the data cache is going to wreak havoc on this. Not to mention you're calling an upper bound approximation "proof of the running time" but I guess you're just uh, "trolling" there.

It's obvious from context that shrughes means "time complexity" when he says "running time," given that he quoted it in big-O and not microseconds or cycles or something. But I guess you're just uh, "trolling" there.

Otto Skorzeny posted:

Perhaps I misunderstand you, but on many common architectures integer division on fixed-width types takes a variable amount of time depending on the value of the operands. For instance, on Cortex M3 signed division with 32 bit operands takes ceil(2 * log2(n)) cycles where n is the position of the first leading one in the dividend. Unless you're saying that, for the fixed-width type you always assume the worst case input and thus handwave this logn operation away by calling a 2-to-12 cycle operation a 12-cycle operation in all cases.

I never really learned time complexity analysis beyond CS102 level (and definitely haven't done it at this fine-grained a level before, that in any case I don't think most software interviews would care about). In this case of division with a dividend m, division is proportional to log2 n where n is the position of the first leading one in the dividend. Since n is proportional to log2 m, does that mean that 32-bit division on this architecture is O(log log m)?

Adbot
ADBOT LOVES YOU

Nippashish
Nov 2, 2005

Let me see you dance!
If the number of bits is bounded its O(1).

shrughes
Oct 11, 2008

(call/cc call/cc)

JawnV6 posted:

Actually you're hitting a bunch of elements of x multiple times in a goofy ordering so the data cache is going to wreak havoc on this.

Ask your mom if I care.

JawnV6 posted:

Not to mention you're calling an upper bound approximation "proof of the running time" but I guess you're just uh, "trolling" there.

An asymptotic bound is what the phrase "the running time" generally means. And yes that's a proof that the function runs in O(n^2) time.

Yes, that's assuming an abstract machine where dereferencing a pointer or indexing an array doesn't require scanning ~(log n) bits or have speed-of-light limitations implying an average ~(cbrt(n)) random access memory lookup time.

shrughes fucked around with this message at 21:11 on Feb 10, 2014

JawnV6
Jul 4, 2004

So hot ...
Good to see you own up to dragging the goalposts around so honestly. I'm pleasantly surprised!

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
Talked to the hashrocket guys, the seemed really cool. I think I undersold myself but, whatever. I'd be very happy to do the apprenticeship thing.

tetracontakaidigon
Apr 21, 2013
According to consensus, I'm not going to bother getting Programming Interviews Exposed in addition to CTCI, at least not now. Thanks, Cicero, Strong Sauce, and DaVideo!



WHERE MY HAT IS AT posted:

:toot: Got an offer from IBM!

Congrats! Are you interviewing anywhere else as well? I'd be interested in hearing how IBM's interview process and eventual offer compares to other companies, since right now it's looking like I will want to leverage my internship experience with IBM to get a position elsewhere in the not-too-distant future. (They just announced more layoffs. IBM's the major tech employer in my region, and I'm thinking escape to NYC after graduation might be a good plan.)

bonds0097
Oct 23, 2010

I would cry but I don't think I can spare the moisture.
Pillbug

JawnV6 posted:

Good to see you own up to dragging the goalposts around so honestly. I'm pleasantly surprised!

I don't understand why you're making such a big deal about this. Proofs of algorithm running time and correctness are not some crazy thing that shrughes just made up. Likewise, his assumption that an array look-up or arithmetic operations are constant time is not some radical notion.

Scaevolus
Apr 16, 2007

Most complexity analyses don't mention their abstract model. People generally assume a RAM machine where every elemental operation (arithmetic, memory, branching, ...) takes constant time, which is an approximation of the real world that ignores the large constant factor overheads of poor memory access patterns. Word sizes are similarly assumed to be large enough for the numbers involved in the problem, barring algorithms specifically dealing with huge integers.

Blowing the cache can greatly increase the constant factor, but the given function is actually Θ(n^2) -- asymptotically bounded on both sides by n.

JawnV6
Jul 4, 2004

So hot ...

bonds0097 posted:

I don't understand why you're making such a big deal about this. Proofs of algorithm running time and correctness are not some crazy thing that shrughes just made up. Likewise, his assumption that an array look-up or arithmetic operations are constant time is not some radical notion.

It started out as a standard "I know more arch than y'all" jab with an option to open into "oh, so why is your spot on the pedantic spectrum so privileged??" like Otto tried to take it, but the posters eager to smear me coming out of the woodwork to vomit algo 101 basics past my point has been quite a treat!

WHERE MY HAT IS AT
Jan 7, 2011

Nope, no other interviews scheduled, and I've already accepted IBM's offer. This is just for an internship, and our school's policy is that you're obligated to take the first offer you get (to avoid pissing off potential employers, I guess?).

WaterIsPoison
Nov 5, 2009

JawnV6 posted:

It started out as a standard "I know more arch than y'all" jab with an option to open into "oh, so why is your spot on the pedantic spectrum so privileged??" like Otto tried to take it, but the posters eager to smear me coming out of the woodwork to vomit algo 101 basics past my point has been quite a treat!

https://www.youtube.com/watch?v=uQl5aYhkF3E

Cicero
Dec 17, 2003

Jumpjet, melta, jumpjet. Repeat for ten minutes or until victory is assured.

WHERE MY HAT IS AT posted:

Nope, no other interviews scheduled, and I've already accepted IBM's offer. This is just for an internship, and our school's policy is that you're obligated to take the first offer you get (to avoid pissing off potential employers, I guess?).
...what. That is a terrible policy. If that had applied to me, I'd have ended up taking an internship with some random no-name shop in Utah instead of Goldman Sachs, for half the pay (and I wouldn't have been able to go to NYC).

Malcolm XML
Aug 8, 2009

I always knew it would end like this.

JawnV6 posted:

Actually you're hitting a bunch of elements of x multiple times in a goofy ordering so the data cache is going to wreak havoc on this. Not to mention you're calling an upper bound approximation "proof of the running time" but I guess you're just uh, "trolling" there.

Jawn I know that triggers your autism but usually algorithmic analysis is done in a cache free O(1) ram model

cool kids use cache oblivious analysis

Malcolm XML fucked around with this message at 01:58 on Feb 11, 2014

WHERE MY HAT IS AT
Jan 7, 2011

Cicero posted:

...what. That is a terrible policy. If that had applied to me, I'd have ended up taking an internship with some random no-name shop in Utah instead of Goldman Sachs, for half the pay (and I wouldn't have been able to go to NYC).

I'm quite aware. Hence why I started looking quite early and only apply to the jobs at the tippy top of my list to start.

FamDav
Mar 29, 2008

WHERE MY HAT IS AT posted:

Nope, no other interviews scheduled, and I've already accepted IBM's offer. This is just for an internship, and our school's policy is that you're obligated to take the first offer you get (to avoid pissing off potential employers, I guess?).

what kind of nerd school do you go to.

an skeleton
Apr 23, 2012

scowls @ u

WHERE MY HAT IS AT posted:

Nope, no other interviews scheduled, and I've already accepted IBM's offer. This is just for an internship, and our school's policy is that you're obligated to take the first offer you get (to avoid pissing off potential employers, I guess?).

This is a hosed up policy and its hard to believe. How would they even know. Jesus

bonds0097
Oct 23, 2010

I would cry but I don't think I can spare the moisture.
Pillbug

an skeleton posted:

This is a hosed up policy and its hard to believe. How would they even know. Jesus

How would this even be legal? Even if you signed a contract to that effect, I have trouble believing it would be enforceable.

tetracontakaidigon
Apr 21, 2013

WHERE MY HAT IS AT posted:

Nope, no other interviews scheduled, and I've already accepted IBM's offer. This is just for an internship, and our school's policy is that you're obligated to take the first offer you get (to avoid pissing off potential employers, I guess?).

IBM was near the top of your list? Anyway, I'm going to be interning with IBM this summer as well, so if you're in the greater NY area, see you around!

WHERE MY HAT IS AT
Jan 7, 2011
To clarify a bit on the policy: If you get an offer that comes through our school's co-op department policy states that you're allowed to decline it, however it causes the following things to happen:
  • You lose access to the school's internal job board and any jobs posted there for the rest of your enrollment
  • You lose access to any sort of co-op advisor, resume review services, or job fairs associated with the school
  • If anyone else wishing to interview you or give you a job offer goes through the school rather than talking to you directly, it may or may not be forwarded on to you.
  • Some other stuff which I can't recall.

So sure, you're "allowed" to decline, but only if you never intend to use any of the co-op department services again (you still have to pay fees for them, of course).

I applied and interviewed for the IBM job outside of the school, however they went to the school to make me an offer, which meant I had to take it (I would have taken it anyways in this case, though). Still a lovely policy, but what can you do?

edit: IBM wasn't specifically, but the position is at their research labs and they pay quite well (for this area, at least), so whatever. Also I won't see you around because I'm in :canada:

WHERE MY HAT IS AT fucked around with this message at 03:22 on Feb 11, 2014

Hyperman1992
Jul 18, 2013

He's not the only one... I had a very similar policy at my school (also in :canada:. take the first offer given, or else you can't get board access), but in most circumstances, if you were to talk to them, they will usually let it slide.

I remember having two offers at the same time, so there was no possible way I can just take the first...

At least you are working at IBM


an skeleton posted:

This is a hosed up policy and its hard to believe. How would they even know. Jesus
You don't tell the school, and hope the company doesn't tell either. :shrug:

NovemberMike
Dec 28, 2008

JawnV6 posted:

It started out as a standard "I know more arch than y'all" jab with an option to open into "oh, so why is your spot on the pedantic spectrum so privileged??" like Otto tried to take it, but the posters eager to smear me coming out of the woodwork to vomit algo 101 basics past my point has been quite a treat!

Yeah, all offense intended you were just sperging out. Anyone that's been through a basic CS program can tell you that big O approximations are relatively crude. That's not news to anyone here, an n^2 function can run slower than an n^3 function depending on the inputs or the architecture that's running the algorithm. Anybody that's done any assembly will tell you that this is obvious, and I'm guessing that's most of the people here with a formal background. All you've done is gently caress up an architecture 101 concept, and also gently caress up enough that all those people "vomiting algo 101" are more correct than you.

One of the basic concepts of big O is that as N increases, algorithmic complexity tends to dominate architectural concerns. If we view a basic x*n^y, then almost all architectural concerns tend to fall into the x, which is the one part that you can ignore. If you know the architecture and you can control the inputs then the arch 101 stuff starts to come into play but since Shrughes specified neither your remark is both rude and idiotic. It sounds like you are simply parroting something you heard in a class or on the internet without really understanding how and why to use the knowledge.

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

JawnV6 posted:

Good to see you own up to dragging the goalposts around so honestly. I'm pleasantly surprised!

blorpy
Jan 5, 2005

blorpy
Jan 5, 2005

JawnV6 posted:

It started out as a standard "I know more arch than y'all" jab with an option to open into "oh, so why is your spot on the pedantic spectrum so privileged??" like Otto tried to take it, but the posters eager to smear me coming out of the woodwork to vomit algo 101 basics past my point has been quite a treat!

So what's up with this chip on your shoulder about software people all of a sudden?

Tunga
May 7, 2004

Grimey Drawer

Markov Chain Chomp posted:

So what's up with this chip on your shoulder about software people all of a sudden?
What architecture is the chip based on? I need it to determine the Big O runtime of this dumb argument.

Che Delilas
Nov 23, 2009
FREE TIBET WEED
So to derail this terrible argument into one slightly less terrible, should I wear a suit to my next interview?

wolffenstein
Aug 2, 2002
 
Pork Pro

Che Delilas posted:

So to derail this terrible argument into one slightly less terrible, should I wear a suit to my next interview?

If they normally wear khakis and a button-up, yes. If interviewing at Apple, hell no you will be laughed at behind your back.

Mniot
May 22, 2003
Not the one you know

wolffenstein posted:

If they normally wear khakis and a button-up, yes. If interviewing at Apple, hell no you will be laughed at behind your back.

Apple's a sensible enough company about hiring. I interned there and my group hired a guy in a suit. The manager's reaction when he came in was to say, "awww you wore a suit, that's cute. I told you you didn't have to." Then an engineer came in in bare feet and cut-offs and they all grilled the interviewee in front of a whiteboard. He clearly knew his stuff, so they hired him and nobody mentioned the suit-wearing. When he started work, he dressed better than the rest of the team (khakis and button-ups) and nobody cared.

bonds0097
Oct 23, 2010

I would cry but I don't think I can spare the moisture.
Pillbug

Mniot posted:

Apple's a sensible enough company about hiring. I interned there and my group hired a guy in a suit. The manager's reaction when he came in was to say, "awww you wore a suit, that's cute. I told you you didn't have to." Then an engineer came in in bare feet and cut-offs and they all grilled the interviewee in front of a whiteboard. He clearly knew his stuff, so they hired him and nobody mentioned the suit-wearing. When he started work, he dressed better than the rest of the team (khakis and button-ups) and nobody cared.

Totally off-topic I suppose, but I don't think I'd want to work next to a programmer in bare feet (sounds smelly). "No shoes, no shirt, no coding" seems like a reasonable policy. Admittedly, I just wear slippers all day.

RICHUNCLEPENNYBAGS
Dec 21, 2010

NovemberMike posted:

Yeah, all offense intended you were just sperging out. Anyone that's been through a basic CS program can tell you that big O approximations are relatively crude. That's not news to anyone here, an n^2 function can run slower than an n^3 function depending on the inputs or the architecture that's running the algorithm.

It was poorly worded but this was the point I was initially trying to make. Sorry.

JawnV6
Jul 4, 2004

So hot ...

NovemberMike posted:

Yeah, all offense intended you were just sperging out.
None taken!

RICHUNCLEPENNYBAGS posted:

It was poorly worded but this was the point I was initially trying to make. Sorry.
I got mixed up and thought the data science person under discussion was explicitly interested in real world perf. Then the example had the odd inner term that really highlighted where big O would be an exceptionally poor tool.

Has everyone taken their shot? Anyone else feel like vomiting up an algo 101 post ostensibly aimed at me?

Markov Chain Chomp posted:

So what's up with this chip on your shoulder about software people all of a sudden?
All of a sudden? Check your premises there.

Malcolm XML
Aug 8, 2009

I always knew it would end like this.

heh

Cicero
Dec 17, 2003

Jumpjet, melta, jumpjet. Repeat for ten minutes or until victory is assured.

bonds0097 posted:

Totally off-topic I suppose, but I don't think I'd want to work next to a programmer in bare feet (sounds smelly). "No shoes, no shirt, no coding" seems like a reasonable policy. Admittedly, I just wear slippers all day.
At Amazon everyone always had shoes, but at Google a few more senior engineers I've seen have been barefoot. It looks...odd. I dunno, maybe I'll get used to it.

Good Will Hrunting
Oct 8, 2012

I changed my mind.
I'm not sorry.

Cicero posted:

At Amazon everyone always had shoes, but at Google a few more senior engineers I've seen have been barefoot. It looks...odd. I dunno, maybe I'll get used to it.

Not that it would change my decision to work there, but man that's weird.

Also I start one week from today and the Dunning-Kurger or whatever is setting in.

Edly
Jun 1, 2007

Cicero posted:

At Amazon everyone always had shoes, but at Google a few more senior engineers I've seen have been barefoot. It looks...odd. I dunno, maybe I'll get used to it.

I haven't actually gone barefoot at work, but I get it. Shoes are feet prisons.

an skeleton
Apr 23, 2012

scowls @ u

Edly posted:

I haven't actually gone barefoot at work, but I get it. Shoes are feet prisons.

This. I'd never really considered but if it was an option then I think I would be one of those people

Pollyanna
Mar 5, 2005

Milk's on them.


I have that skype call with Hashrocket in about an hour. Wish me luck!

I'm trying to think of questions to ask afterwards, and I'm wondering if it's too presumptuous to ask details about their paired programming interview before I'm asked to do it. I already know that they do that, but I'm not entirely sure if apprentices do the same. Is it okay to ask?

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Pollyanna posted:

I have that skype call with Hashrocket in about an hour. Wish me luck!

I'm trying to think of questions to ask afterwards, and I'm wondering if it's too presumptuous to ask details about their paired programming interview before I'm asked to do it. I already know that they do that, but I'm not entirely sure if apprentices do the same. Is it okay to ask?

I talked to them yesterday and it's definitely fine to ask. The apprentice thing is very unusual so I think asking questions about is a good idea. It's a very casual interview -- just a screening. It will be much better than my stupid questions.

They're very nice, don't stress and you'll be fine. (I wasn't because I stress and then my mind goes blank and I can't remember anything I've ever done).

Pollyanna
Mar 5, 2005

Milk's on them.


USSMICHELLEBACHMAN posted:

I talked to them yesterday and it's definitely fine to ask. The apprentice thing is very unusual so I think asking questions about is a good idea. It's a very casual interview -- just a screening. It will be much better than my stupid questions.

They're very nice, don't stress and you'll be fine. (I wasn't because I stress and then my mind goes blank and I can't remember anything I've ever done).

Yeah, I was coming up with a bunch of questions related to it before now. Still got about 45 minutes!

I'm glad to hear that they're nice. I'm still kinda worried about the entire thing, myself, but I'll judge that after I'm done.

Adbot
ADBOT LOVES YOU

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Pollyanna posted:

Yeah, I was coming up with a bunch of questions related to it before now. Still got about 45 minutes!

I'm glad to hear that they're nice. I'm still kinda worried about the entire thing, myself, but I'll judge that after I'm done.

Good luck, let me know how it goes.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply