# computer science

• ## Better programming practice in linked list2017-09-13

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

• ## What algorithm is this? Best way to distribute limited resources2017-07-29

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

• ## Regular Expression for no. of 0s and 1s odd in the string2017-05-30

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

• ## How to extract features vectors of same size from a dataset using SIFT?2016-10-03

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

• ## what is the big O notation for this pseudo-script2015-02-23

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

• ## Are constant functions linear?2015-02-23

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

• ## University course advice - computer science and electrical engineering2014-12-23

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

Tags: computer science
• ## How are keywords represented in binary form?2014-11-13

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

• ## smtp - Simple Mail Transfer Protocol 2014-09-26

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

• ## java coin toss simulator problems2014-03-12

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

Tags: java, computer science
• ## How to convert a fraction to a floating point?2014-03-05

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

• ## Who guarantees memory safety, and how?2013-11-06

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

• ## ASP.net PageMethods return undefined2013-10-25

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 is it output sensitive algorithm? 2013-07-11

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. --------------

• ## C# - show Obsolete warnings in winform and have timestamp?2013-07-01

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

• ## Universal Machine Code Language? 2013-01-31

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

• ## Is this FindAllPath algorithm correct in a directed graph?2013-01-01

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

• ## static vs stack-dynamic share memory2012-11-26

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

• ## Quick Probability Concept: N-bit strings2012-05-02

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

• ## Trouble understanding the constant portion of Big O2012-04-30

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(

Tags: big o, computer science