1,684 Posted Topics

Member Avatar for Jean5
Member Avatar for DMR
-1
187
Member Avatar for playkid

I just realized that I forgot I had left some money in my Paypal account. I'm richer than I thought I was! Well, closer to achieving zero net worth, anyway...

Member Avatar for cyfm
0
153
Member Avatar for yenh

What are you talking about? The time complexity is a mathematical expression describing the growth rate of an algorithm's running time as an input parameter varies. Running an algorithm 1000 times wouldn't give you any clue about the time complexity. yenh, I don't feel like writing out a tutorial every …

Member Avatar for Ancient Dragon
0
81
Member Avatar for xSpadex
Member Avatar for bustergut
0
118
Member Avatar for k1d
Member Avatar for Mushy-pea

See [url]http://en.wikipedia.org/wiki/IEEE_754[/url] for information on how float and double are typically implemented.

Member Avatar for Rashakil Fol
0
68
Member Avatar for bajanstar

Reverse postorder means you traverse each node's children from right to left.

Member Avatar for Rashakil Fol
1
96
Member Avatar for Mix
Member Avatar for UrbanKhoja
-1
276
Member Avatar for Rashakil Fol

Having buttons move around the window and stop in the middle, all in the way, is annoying.

Member Avatar for 'Stein
0
111
Member Avatar for imtiazm_71267

See [url]http://www.daniweb.com/techtalkforums/post183580-17.html[/url] which might give you some idea of how to solve the problem.

Member Avatar for Rashakil Fol
0
59
Member Avatar for imtiazm_71267

So, what is the behavior of the function when the list is empty? Can you define the behavior of the function in relation to a function call on a list that is closer to being empty? The function is defined recursively; a recurrence relation is just another way of writing …

Member Avatar for Rashakil Fol
0
66
Member Avatar for imtiazm_71267

So, what is the problem? Why can't you do it? What do you think the answer is? Do you think you'll just get answers just by posting questions? We don't do people's homework here. If you need help, explain what ideas you might have about what the solution would be.

Member Avatar for Rashakil Fol
0
43
Member Avatar for MikeAR
Member Avatar for tgreer
0
274
Member Avatar for ahgu00321

It depends on how your tree is structured. Do leaf nodes contain pointers to their parents? Or is it that parents contain pointers to their children, and that you're only given the root node and the addresses of the two particular leaf nodes? In the former case, you can do …

Member Avatar for Rashakil Fol
0
54
Member Avatar for madcapjack

You have interpreted the problem correctly. Your instructor is a complete idiot with a personality disorder. [QUOTE=madcapjack](a) Show that any algorithm that can decide whether a given array includes such an element, and if so find it must check all the elements in the array."[/quote] I would add and remove …

Member Avatar for Rashakil Fol
0
67
Member Avatar for theressa
Member Avatar for viki

Yeah, there's a simple and straightforward algorithm for this. The first step is to understand how to represent a linear system of equations with matrices and how to solve that with a computer program. Once you understand that, you'll need some way to be able to find all the roots …

Member Avatar for DavidB
1
707
Member Avatar for Jafet

I've never seen it before. But, you know, it has no advantage over Quicksort, unless it'd kill you to use the (log n)/(log 2) words of auxiliary memory needed for quicksort.

Member Avatar for Infarction
0
173
Member Avatar for santosdas

In some distributions you can, if you're on the AMD64, i.e. x86-64 architecture, since it's a superset of x86 -- there are issues that come up, like the fact that you need thirty-two-bit libraries /and/ sixty-four-bit libraries installed on the system.

Member Avatar for Rashakil Fol
1
113
Member Avatar for biler

And what do you need to know? Specifically, what gaps of knowledge prevent you from using the information at [url]http://en.wikipedia.org/wiki/Interpolation[/url] to figure this out?

Member Avatar for Rashakil Fol
0
42
Member Avatar for nizzy1115

Net neutrality is a silly notion [i]if[/i] it's easy to set up your own network and connect yours to others'. If that's the case, then competition will take care of problems and distribute access efficiently and fairly. By 'easy', I mean if there are loose local regulations regarding burying of …

Member Avatar for The Geeky Kid
0
622
Member Avatar for the.future.zone

If I were to consider VB.net, I'd end up using C# instead. Then again, C# isn't in the C family, except in a loose syntactic sense... but okay. Usually, you'll want to use a language with automatic memory management (i.e. garbage collection), which means you'll want to use VB, C#, …

Member Avatar for Rashakil Fol
0
126
Member Avatar for grunge man

Not only can you store larger numbers with doubles, the numbers are stored with more precision.

Member Avatar for dwks
0
250
Member Avatar for himanjim

In UNIX-like systems, a file descriptor is a small integer associated with an open file stream. You can use procedures like read and write to read and write to a particular file stream, and in order to do this, you need to provide the file descriptor for the open file …

Member Avatar for mostafadotnet
0
156
Member Avatar for JW1873

[quote]flag = (x <= 10) ? true : false[/quote] You could just write [inlinecode]flag = (x <= 10);[/inlinecode] And you're sorely mistaken if you think your post helped the original poster.

Member Avatar for mostafadotnet
0
250
Member Avatar for Dave Sinkula
Member Avatar for mcmemam

Make a program that takes a BF program (a simple programming language) as input and outputs how many steps it takes to run, without actually running the program.

Member Avatar for robertkatz
0
131
Member Avatar for l-o-s-t

Realize that if you have 128 binary digits, you won't be able to store that in a long or long long datatype.

Member Avatar for Grunt
0
125
Member Avatar for gumedesv

That's because it's a hard question. It was on my DSA final. Because it's an O(log k) algorithm, you can bet that it involves jumping pointers around in a binary search-esque pattern. You might also want to try assuming that k <= n for now. (If k > n, you …

Member Avatar for gumedesv
0
150
Member Avatar for himanjim
Member Avatar for med7at7egazi

Search the forum or the web for ideas -- there are zilliards of people who ask this question.

Member Avatar for WaltP
0
314
Member Avatar for himanjim

[QUOTE=Ancient Dragon]getch() returns an int, not a char. And there is an open parenthesis missing in the if condition. [code] [color=red]int c; [/color] [color=blue]if( (c==getchar())!='\n')[/color] <snip> [/code][/QUOTE] I don't see why two people assume that == is the desired operator between c and getchar(). For one, (c==getchar()) will never return …

Member Avatar for ~s.o.s~
0
165
Member Avatar for myques
Member Avatar for ~s.o.s~
-1
137
Member Avatar for The Dude

[b]Your Personality Profile[/b] [img]http://images.blogthings.com/worldsshortestpersonalitytest/black.jpg[/img] You're stupid, obsessive, and dimwitted. People avoid talking to you because you're so annoying. You live a shell of a life, ignorant of the world around you, too tired and insolent to improve your circumstances. While others socialize, you download porn off of Usenet. You waste …

Member Avatar for sleepygamer
0
246
Member Avatar for peter_budo
Member Avatar for server_crash
1
1K
Member Avatar for MIGSoft
Member Avatar for yaeli_17

[quote=yaeli_17]don't have any problems with calculus or math.[/quote] That's great news. [quote]but i'm ailttle bit concerned because i have no programming knowledge what-so-ever, and i mean zip.[/quote] That doesn't matter. You might surpass these students who have 'programming knowledge' quickly. What separates students in computer science programs isn't how much …

Member Avatar for yaeli_17
0
161
Member Avatar for ayk-retail

begin Why would anybody want to use Pascal? end; You'll see it in Delphi, anyway, and I'm sure other people still use it. It's unpopular because it is a restrictive language, compared to others.

Member Avatar for Lord Soth
0
273
Member Avatar for p_eqlz_np

You can make a mask representing what users are in each group: for example, for G1, that would be 10001, for G2, that would be 10101, and so on. Then combine these masks using regular bitwise operations.

Member Avatar for Rashakil Fol
0
146
Member Avatar for INI

The help file should have everything you need. And why (the hell) would you want to learn QBASIC next?

Member Avatar for INI
0
67
Member Avatar for woolistictdc

Wasn't there something sometime during one of your classes that interested you?

Member Avatar for Jafet
0
87
Member Avatar for cgerber

Also, if you're using C++, there's no reason you should be writing [inlinecode]typedef struct { ... } foo;[/inlinecode]. Just write [inlinecode]struct foo { ... };[/inlinecode].

Member Avatar for WaltP
0
106
Member Avatar for hotshotcity
Member Avatar for hotshotcity
0
146
Member Avatar for manju13

You need to be clear about where your output begins and ends. Your program prints out "This is from slp.pl\n\n"?

Member Avatar for John Bokma
0
187
Member Avatar for skeet123

[QUOTE=WolfPack][tex]\lim_{N\to\infty}{N^2 \over 2} + {N \over 2} = N^2[/tex][/QUOTE] Don't use fake mathematics. For starters, N^2/2 is nowhere near N^2. And even if you wrote N^2/2, the distance away as N appoaches infinity would be infinity also. The reason the function is [tex]O(N^2)[/tex] is that, with [tex]N_0 = 5[/tex] and …

Member Avatar for WolfPack
0
116
Member Avatar for bobradi

If you signed up for piano lessons, but then decided that you didn't feel like taking them, would you ask somebody to go in your place?

Member Avatar for mostafadotnet
0
403
Member Avatar for nehareddy33

That code wouldn't work at all anyway; the values of m, a, b, and c never change. And it seems completely oblivious to triplets like 20,21,29.

Member Avatar for portege
0
126
Member Avatar for muthuivs
Member Avatar for MIGSoft

If all you have is an AK-47, everything looks like an enemy combatant.

Member Avatar for carolraydon
0
658
Member Avatar for Neldon

The End.