In linked list Which is better programming practing using double pointers or just declaring head pointer globally //Here head double pointer is passed as argument Void insertatend(node **head, int item) { node *ptr, *loc; ptr=(node*)malloc(sizeof(nod
I recently saw this question on a programming challenge, and I'd like to know which well-known CS algorithm this resembles. I implemented a crude solution. I know there must be a better way to do it, but I'm not sure of the terms to search for. It se
As we can develop regular expression like string ending with 01 over {0,1} Like (0+1)*01 So this way over {0,1} I want the answer of my question that what will be the regular expression for number of 0s and 1s both are odd Any combination of 1 and 0
I started to study machine learning and computer vision but at the moment i have some doubts. I have a dataset of 1000 images of different size and I want to create features matrix using SIFT and OpenCV (i'm working with python). The problem is that
I am studying big-O notation and I want to find the big O notation of a Math problem I solved from Project Euler. total for x (0..9){ for y (0..9){ for z(0..9){ if(some_condition == true){ total = total + permute(x,y,z) } } } } print total my guess i
Linear functions in mathematics are those polynomials whose degree is 1 and hence they are straight in nature when plotted on a graph. But the constant functions like f(x) = 3, even though their degree is 0, are straight in nature when plotted on a g
I was planning on going to monash university to study a double degree of science (major in computer science) and electrical engineering. My main focus has always been the computer side of things so this course really appealed to me as I get to major
How are keywords represented in binary form? For ex:: In java, how is the sin() represented in binary? How is sqrt() and other functions represented. If not only in java, in any language how is it represented?? because ultimately everything is transl
what is simple mail transfer protocol and how does it work when sending emails on outlook and internet does mean sending mail over the internet from one client to the next, ive been having problems understanding this concept lately --------------Solu
hi i am doing a coin toss simulator for java that must be done a certain way. it must have a string for sideup to hold the string of "heads" or "tails" made by a no arg constructor, the toss method must be void and it must have a getsideup method, th
Lets suppose I have 0.128 or 0.008. The fraction cannot be represented in binary fixed point, so I don't know how to find out the mantissa in order to convert it to a floating point. Lets suppose i have int 100, a floating point binary string will be
I've been programming x86 Assembly and C for some time in university now, and upon this day, I couldn't get my head around one thing: Who stops me from developing a program that writes values to 0x0 or other addresses that, by their address values, s
Hi everyone i trying to get data from cs to js using ToolkitScriptManager. this is my aspx : <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="../assets/lib/jquery/jquery-2.0.3.j
What of this algorithms is output sensitive ? (their base algorithm) ray tracing gpu rendering splatting How can we make them with acceleration method to be likely output sensitive ? I think ray tracing and gpu is not output sensitive. --------------
I was wondering if there is a way to apply date when marking a method as obsolete? What I mean about a date is that this date represents the "date" when this function should be removed for good. And a NooB question, is there a way to display error/wa
I've been thinking of how machine code is specific to architecture and how Javascript works in (nearly)every browser. I've been working on a project that has to do some serious calculations and it is Javascript based and takes a full minute to finish
I was looking for an algorithm to print all possible paths between two nodes in a directed graph . I saw this : procedure FindAllPaths(u, dest) { push u to stack; if(u == dest) { print stack; } else { foreach v that is adjacent with u and not in stac
I am reading the concept of language ch 5 and find that static's disadvantage : subprograms cannot share same storage. stack-dynamic's advantage : without recursion, it is not without merit subprograms can share the same memory space for theirs local
Suppose you generate an N-bit string (composed of only 1's and 0's). The sum of all of these 0's and 1's is X. What is the probability that X is odd, if N is odd? What is the probability that X is odd if N is even? Since the chance of any bit being a
Can someone please explain to me the purpose of the constant portion of big O notation. I'll try and explain where I am at right now in terms of understanding: Basically you have a function, for example f(x) = x^2 + 1 and g(x) = x^3 So, f(x) is O( g(