Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

windows programming

Name: Anonymous 2008-11-09 6:23

i read SICP, learned haskell, and have now realized that in order to get a real job i need to learn some windows programming. nobody will hire you just because you understand loeb.

what's the best languages that are used today?

Name: Anonymous 2008-11-12 19:13

>>40
You have 3 lamps and 3 switches connected to the lamps. Each lamp represents a different number. Lamp #1 = A, lamp #2 = B, lamp #3 = C, where A, B, C are integers (positive, zero or negative.) The 3 switches are labelled switch #1, switch #2 and switch #3, and can be turn

Suppose there is a target number called T.
Design an algorithm to find a subset of switches which, when turned on, will produce a set of lamps whose numbers add up to T.

Name: Anonymous 2008-11-12 19:14

>>41
* can be turned off or on.

Name: Anonymous 2008-11-12 21:28

>>41
Some pseudo-code:

1) Turn one lamp on,
2) If T == lamp then return
3) Else, try the second lamp
4) Repeat 2-3 until solution is found

Name: Anonymous 2008-11-12 21:41

>>43
Forget it, it's NP-complete

Name: Anonymous 2008-11-12 23:09

>>44
Uh, no... it isn't. Do you even know what NP-Complete means?

Name: Anonymous 2008-11-13 0:41

>>44
Not sure if this is a troll, but >>43's algorithm will find the solution deterministically. I suspect >>44 and >>45 are the same people, and that we have been trolled constantly.

Name: Anonymous 2008-11-13 2:25

>>46
No it won't.  Depending on the wording, it either never turns lamps off, or only turns one on at a time.

Name: Anonymous 2008-11-13 2:47

Name: Anonymous 2008-11-13 5:19

>>41's problem is essentially a description of the subset-sum problem, which is known to be in NP-Complete. I'm not sure why MSFT would ask that, unless they wanted to separate the CS-nerds from the IT applicants.

Name: Anonymous 2008-11-13 17:07

>>49
8/10

Name: Anonymous 2008-11-13 17:49

It really is NP-complete.
Habeeb it

Name: Anonymous 2008-11-13 19:27

It is not NP-Complete. There are only 3 lamps, each with 2 possible values. We need only check 23 combinations. This problem has a constant size; the generalization reduces to subset-sum and is NP-Complete.

Name: Anonymous 2008-11-13 19:38

>>52
the generalization
There are more than one, you worthless pedant.

Name: Anonymous 2008-11-13 21:17

>>53
2/10

Name: Anonymous 2008-11-13 21:45

>>52
The question is asking for a generalized solution to the problem. In which case no such solution exists. If it's okay with you mate, I might just as you to not respond to this thread anymore, OK?

Name: Anonymous 2008-11-13 22:31

The question is asking for a generalized solution to the problem.
No it isn't.
In which case no such solution exists.
Yes it does. Simply check all 2n combinations of lamps.

Name: Anonymous 2008-11-13 22:59

>>56
A=1
B=2
C=4

T=9001

What's the solution?

Name: Anonymous 2008-11-13 23:00

>>56
No polynomial-time solution exists. Once again, I might just invite you to leave this thread.

Name: Anonymous 2008-11-13 23:07

>>57
Lamps A, B, and C should be turned on.

Name: Anonymous 2008-11-13 23:53

>>57
0/10

>>58
1/10

Name: Anonymous 2008-11-14 1:01

>>60
Rating trolls is an automatic admission of being trolled.

Name: Anonymous 2008-11-14 1:11

>>61
Trolling is in the eye of the beholder.

Name: Anonymous 2008-11-14 1:38

>>61
Looks like you have been meta-trolled.

Name: Anonymous 2008-11-14 3:09

Actually I'm used to say that being a good programmer doesn't mean know a lot of languages, but be able to understand any new programming language in a few days...

However there's an important thing to keep in mind: you may know a programming language, but you need to know even the platform where you are working on. So you are right.

However... programming on a Windows platform is a kind of nightmare! That's why I feel to work with java, that gives you enough abstraction to avoid the very BAD windows API.

Name: Anonymous 2008-11-14 3:10

>>61
7/10

Name: Anonymous 2008-11-14 3:12

O(1) OH SHIT I'M GOING SO FAST OH FUCK

It's constant time and the question is not asking for a generalization. HABEEB IT

Name: Anonymous 2008-11-14 3:29

YOU ARE ALL FAGGOTS

Name: Anonymous 2008-11-14 10:27

>>66
HABEEB IT

Does anyone even say that anymore?

Name: Anonymous 2008-11-14 10:41

>>68
I never say it anymore, I find it quite childish.

Name: Anonymous 2008-11-14 10:48

TWINKIE HOUSE

Name: Anonymous 2008-11-14 10:56

Roma allows you to develop enterprise level Java applications with low effort following a real Domain Driven Design approach. It's a new way to conceive the application: anything is a POJO, from the GUI forms to the persistent objects.
Using the Meta-Framework approach you can integrate the latest breaking technology in your application without modifying your domain and application logic because they are really decoupled.
Roma provides you automatic support for every layer and aspect for your application, from dynamic web user interface and persistence, to report functionalities, portlet development and semantic technologies.

Name: Anonymous 2008-11-14 12:24

>>1
THE METAPROGRAMMING LANGUAGE RUBY

Name: Anonymous 2008-11-14 15:07

>>64
>>However... programming on a Windows platform is a kind of nightmare! That's why I feel to work with java, that gives you enough abstraction to avoid the very BAD windows API.

That's exactly why, ten years ago, I taught myself Java.  I would write Win32 of MFC GUIs for pay, but not in my own time.

Name: Anonymous 2008-11-14 16:19

>>73
I think that learning java 10 years ago has been a sort of risk. As I heard (note: I'm a very young programmer) the very first versions of java were extremely naive and sucked a lot.

Name: Anonymous 2008-11-14 16:32

>>74
note: I'm a very young programmer
Works on Anonix and should be b& for underage

>>73
ten years ago, I taught myself Java
Is now teaching himself the forced indentation of the code

>>70
Frequents /b/

>>2
Is the Sussman

Name: Anonymous 2008-11-14 17:02

>>75 is a faggort

Name: Anonymous 2008-11-14 17:07

>>76
1/10

>>75
4/10

Name: Anonymous 2008-11-14 17:10

>>77 is a faggort

Name: Anonymous 2008-11-14 18:24

>>78
is a faggort
a
Learn to grammer. It's "the", because your speaking about a pronoun. Faggort.

Name: Anonymous 2008-11-14 18:45

>>75
FIOC was so 2006

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List