Recent content by gradnu

  1. G

    Create Combinations from Set {1,2,3,4,5} with 'C' Program

    I have a set {1,2,3,4,5} and I need all possible combinations with three elements. Example {1,2,3}, {1,2,4}, {1,2,5} etc. Can somebody help me with a 'C' program that does this. I want to store {1,2,3} etc. in an array of size three and print out every time a new combination is formed...
  2. G

    Undergrad Writing Open Intervals as Closed Intervals (-inf,f]

    I think both of them are right. I was initially confused whether to consider (-inf,a] as closed set or not. Thanks.
  3. G

    Undergrad Writing Open Intervals as Closed Intervals (-inf,f]

    Can anybody suggest how to write an open interval (a,b) as a combination(union, intersection and compliment) of closed intervals of the form [c,d] and vice versa. What if closed intervals are half closed as following (-inf, f]. 'f' being rational.
  4. G

    Graduate Calculating Conditional Probability for Poisson Processes

    Let {Nt, t>0} be a Poisson process with arrival rate \lambda. Consider a process {Xt = exp(Nt-a*t, t>0}. How to calculate E[Xt|Xs] for 0<s<t.
  5. G

    Graduate How to Construct Correlated Normal Variables from Independent Normals?

    Thanks mathman. But what was your thought process? How did you come up with these relations?
  6. G

    Graduate How to Construct Correlated Normal Variables from Independent Normals?

    I have two independent standard normal random variables X1,X2. Now I want to construct two new normal random variables Y1,Y2 with mean\mu1, \mu2 and variance (\sigma1)^2, (\sigma2)^2 and correlation \rho. How do I approach this problem?
  7. G

    Finding Eigenvalues of Real Non-Symmetric Matrices

    Hi, Can somebody provide a link(other than numerical recipes) where I can get an optimized 'C' program for calculating eigenvalues of real nonsymmetric martix. Thanks
  8. G

    Check Connectivity of Network using DFS

    Can somebody tell me how to implement(possibly C program) DFS to check whether a network is connected or not. I have network in the form of adjacency matrix. Thanks
  9. G

    Generating a Binary Matrix in C

    I want to generate random adjacency matrices where element ij is 1 if an edge connects node i to node j. Yes it is asymmetric.
  10. G

    Generating a Binary Matrix in C

    No, size of matrix is finite. Basically the problem is to generate random networks with fixed number of nodes and fixed number of links. Network is being represented by a binary matrix where the entry '1' means that a link exists between the corresponding row and column and '0' means the link...
  11. G

    Generating a Binary Matrix in C

    Does anybody know how to generate a random matrix with entries 0 and 1 only(binary matrix). Numbers of 1 and 0 are fixed every time matrix is generated. Possibly a program in 'C'. Thanks