Re: [algogeeks] C++ initialization list
Hi In example 1, member z will have a garbage value (i.e. 0 in your case ) Thanks Deepak On Sep 28, 2014 11:29 AM, sagar sindwani sindwani.sa...@gmail.com wrote: I am working on How compilers handle initialization list. I came across a case where I am not sure what should be the compiler behaviour. *Example 1:-* #include iostream class A { public: int x,y,z; }; int main() { A a1[2] = { { 1,2 }, { 3,4 } }; std::cout a1[0].z is a1[0].z std::endl; return 0; } In above case a1[0].z is ? g++ shows it as 0 ( zero ). It is exactly 0 or garbage value, I am not sure on that. I tried lot of books and some documents , no where I found what C++ says for initialization of class objects. You can find handling of below case in almost every book. *Example 2:- * int arr[6] = {0}; In Example 2, compilers will auto-fill all members with 0. It is mentioned in books. But when it comes to User-defined datatypes nothing is mentioned. Please share your thoughts on this. If you find any document related to this, please share it as well. Thanks Sagar -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com.
Re: [algogeeks] C++ initialization list
Hi sagar Actually its the compiler which is doing things for you. GCC or G++ have some features that allows you to initialize array. For example in your case 2 when you specify a single element gcc intializes the whole array with 0. You can do this also: Int arr [6]={[3]=0, [4]=5} p.s. gcc allows u to do this type of initialisation. You can refer gcc doc online for more info. On Sep 28, 2014 3:59 PM, sagar sindwani sindwani.sa...@gmail.com wrote: Thanks Deepak and Rahul for the reply. Do you guys have any standard document or any standard book which defines this? I totally agree with these answers but I don't have any formal written text. In my example 1, the object is on stack and this lead to a1[0].z to be un-initialized. But as the specified in example 2, Why every element of arr is initialized, it is also on the stack ? Any source to answer this question ? Thanks Sagar On Sun, Sep 28, 2014 at 2:26 PM, Rahul Vatsa vatsa.ra...@gmail.com wrote: http://stackoverflow.com/questions/3127454/how-do-c-class-members-get-initialized-if-i-dont-do-it-explicitly On Sun, Sep 28, 2014 at 12:22 PM, Deepak Garg deepakgarg...@gmail.com wrote: Hi In example 1, member z will have a garbage value (i.e. 0 in your case ) Thanks Deepak On Sep 28, 2014 11:29 AM, sagar sindwani sindwani.sa...@gmail.com wrote: I am working on How compilers handle initialization list. I came across a case where I am not sure what should be the compiler behaviour. *Example 1:-* #include iostream class A { public: int x,y,z; }; int main() { A a1[2] = { { 1,2 }, { 3,4 } }; std::cout a1[0].z is a1[0].z std::endl; return 0; } In above case a1[0].z is ? g++ shows it as 0 ( zero ). It is exactly 0 or garbage value, I am not sure on that. I tried lot of books and some documents , no where I found what C++ says for initialization of class objects. You can find handling of below case in almost every book. *Example 2:- * int arr[6] = {0}; In Example 2, compilers will auto-fill all members with 0. It is mentioned in books. But when it comes to User-defined datatypes nothing is mentioned. Please share your thoughts on this. If you find any document related to this, please share it as well. Thanks Sagar -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com.
[algogeeks] Subtractive Clustering
hey geeks! My aim is to cluster my data using subtractive clustering and so that further I can extract Fuzzy Rules from that. suppose I have the following 2 dimensional data:- X[]=[ {0,.16,.24,.42,.48,.66,.83,.24,.42,.48,.66,.66,.16,.24,.42,.42,.48,.48,.48,.66,.66,.66,.66,.66,.66,.66,.83,.83,.83,.66}, {0,0,0,0,0,0,0,.15,.13,.1,.12,.18,.58,.78,.59,.78,.45,.49,.58,.45,.49,.58,.65,.71,.715,.72,.66,.725,.726,.455} ] so how can i implement it using java kindly provide me some example Regards and Thanks Deepak BTech CSE -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] google
hey guys! google is coming to our college, their main requirements is from operating systems and computer networks. can some one post the sample questions for it.. thanks Deepak -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: extracting vector (digitization) from an ECG image
@SAMM i want to achieve the digitization as shown in the video http://www.youtube.com/watch?v=yCIeKc__LdM kindly have a look On Mon, Jan 9, 2012 at 12:40 AM, SAMM somnath.nit...@gmail.com wrote: 1 month back I wrote C++ code using Magick++ to zoom a image without distorting the Pixels . In that Code we can extact the Pixel attributes which are the Combination of Red , Blue and Green and Alpha attributes(Contributes to Picture Transparancy So , not present in Every Image ). But RBG combination is present in every image . Each attributes contribute to 1 byte (32 bits ) . Every 4bytes/3 bytes Constitute a single pixel depending alpha attribute is present or not in the pic . If u want to get Quantize the image then u have to read the Pixel's Property starting from (0,0) to (M,N) , where MxN is the dimension of the image . This Attibutes are representated in 2D array and is sufficient to serve ur purpose . And I this is Offcourse Supported for Java except for TIFF and JPEG 2000(plugin required separately) . There are many plugins also available for extracting this attributes . Some plug in enables you to read the Image and and and it will return you the starting address of the index (0,0) Corner left of the Image . And from there u can read the Bytes to get the attributes depending the picture support the Tranparency Property(alpha attribute). On 1/8/12, sravanreddy001 sravanreddy...@gmail.com wrote: @Deepak: Digitization of the image doesn't have a algorithmic approach, (unless you need to compress it) But, i see that you are asking for a way to convert the image (jpg) into a memory representation. I am not sure of matlab, but, using java (images API) you have to read the data into digital form (format needed for the neutal network) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/OdrIp1J5tbsJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Somnath Singh -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] extracting vector (digitization) from an ECG image
my question is about how to achieve digitization of an image/graph image. for example i have the following ECG image( taken from a normal camera ):- http://i.stack.imgur.com/QAMfk.png so what algorithm should i follow to get the digitized image, my final aim is to feed this information to a neural network that can classify the given ECG image into a disease class. please suggest me which platform is more feasible MATLAB or JAVA? please help me guys!! -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Memorization
go for Dynamic Programing On Tue, Oct 11, 2011 at 1:47 PM, arvind kumar arvindk...@gmail.com wrote: ya ya,realy sorry..typo!its MEMOIZATION. On Mon, Oct 10, 2011 at 10:56 PM, Ankur Garg ankurga...@gmail.com wrote: Memoization ? On Mon, Oct 10, 2011 at 6:34 PM, arvind kumar arvindk...@gmail.comwrote: Can anyone tell me how to go about with the memorization technique to retrieve values from already stored values,in case of eveluating sequences(fibonacci series,etc).? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Google Interview Question
hey,,,what is the process of attending google offcampus process. kindly let us know.. On Sat, Oct 1, 2011 at 1:52 PM, Rathish Kannan rathishkan...@gmail.comwrote: off campus. -- RK :) On Sat, Oct 1, 2011 at 11:59 AM, arvind kumar arvindk...@gmail.comwrote: Hi Are u attending off-campus or on-campus interview? On 10/1/11, R@TH!$H rathishkan...@gmail.com wrote: Hi, I am attending Google interview on Monday. Please help me with sample questions. Thanks Regards, Rathish Kannan -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Google Interview Question
hey can pls share the link. thnks On Sat, Oct 1, 2011 at 2:04 PM, Rathish Kannan rathishkan...@gmail.comwrote: apply through google careers site... -- RK :) On Sat, Oct 1, 2011 at 2:02 PM, Deepak Garg deepakgarg...@gmail.comwrote: hey,,,what is the process of attending google offcampus process. kindly let us know.. On Sat, Oct 1, 2011 at 1:52 PM, Rathish Kannan rathishkan...@gmail.comwrote: off campus. -- RK :) On Sat, Oct 1, 2011 at 11:59 AM, arvind kumar arvindk...@gmail.comwrote: Hi Are u attending off-campus or on-campus interview? On 10/1/11, R@TH!$H rathishkan...@gmail.com wrote: Hi, I am attending Google interview on Monday. Please help me with sample questions. Thanks Regards, Rathish Kannan -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] Final Year Project Ideas
guys i m a computer science 4th year students. Recently i developed an Intrusion detection system and bandwidth utilization monitoring tool (using JAVA) for ATT as a 2 months internship project kindly do suggest me some very good final year projects my interest area is Artificial Intelligence, Networking. But i would like to do work on other fields as well. please guys help me... Regards Deepak -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Final Year Project Ideas
thanks for replying sir :) cn u pls tell me more about developing a binary analyzer that could be used for fuzzing On Sat, Oct 1, 2011 at 7:40 PM, Hatta tmd...@gmail.com wrote: you if you like both security and artificial intelligence maybe you would enjoy developing a binary analyser that could be used for fuzzing, reverse engineering and (the one I find more interesting) worm/trojan/botnet analysis. On Sat, Oct 1, 2011 at 10:47 AM, Deepak Garg deepakgarg...@gmail.com wrote: guys i m a computer science 4th year students. Recently i developed an Intrusion detection system and bandwidth utilization monitoring tool (using JAVA) for ATT as a 2 months internship project kindly do suggest me some very good final year projects my interest area is Artificial Intelligence, Networking. But i would like to do work on other fields as well. please guys help me... Regards Deepak -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Hatta -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: google maps
they are using a highly optimized A* algo for rout finding On Tue, Sep 20, 2011 at 10:01 PM, Dave dave_and_da...@juno.com wrote: @Sukran: Well, I would hire about 1000 smart people and let them do it. :-) Dave On Sep 20, 2:12 am, sukran dhawan sukrandha...@gmail.com wrote: How do you implement google maps ? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Please provide Code to Find kth Smallest or kth Largest element in unsorted array in liner time ?
use quickSelect algo (google) On Sun, Sep 4, 2011 at 6:35 PM, aditya kumar aditya.kumar130...@gmail.comwrote: first do quick sort . ie (nlog n) then find kth largest/smallest . On Sun, Sep 4, 2011 at 6:28 PM, learner nimish7andr...@gmail.com wrote: something I Know using quick sort randomization function we can find kt smallest/largest in unsorted array , but i am not able to write code , please help me in this and provide the code for the same.? Thanks Nimish K. 1st Year IITR -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Stack problem
+1 sandeep On Sun, Sep 4, 2011 at 11:11 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: we can take another variable min.. first time push operation is done , store the element into min.. next time push is performed , compare the number u r pushing with the already stored no in min variable.. and store minimum of two no's in min variable.. and thn perform the push operation.. so min always contain the minimum no... tell me will that approach work or not? On Sun, Sep 4, 2011 at 10:38 PM, Sangeeta sangeeta15...@gmail.com wrote: How would you design a stack which,in addition to push and pop,also has a function min which returns the minimum element?push,pop and min should all operate in O(1) time -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Stack problem
maintain a separate stack containing min and max element at each step. so if u pop an element for the original stack, pop from the second stack also... On Sun, Sep 4, 2011 at 11:13 PM, Deepak Garg deepakgarg...@gmail.comwrote: +1 sandeep On Sun, Sep 4, 2011 at 11:11 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: we can take another variable min.. first time push operation is done , store the element into min.. next time push is performed , compare the number u r pushing with the already stored no in min variable.. and store minimum of two no's in min variable.. and thn perform the push operation.. so min always contain the minimum no... tell me will that approach work or not? On Sun, Sep 4, 2011 at 10:38 PM, Sangeeta sangeeta15...@gmail.comwrote: How would you design a stack which,in addition to push and pop,also has a function min which returns the minimum element?push,pop and min should all operate in O(1) time -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: memory allocation question
+1 On Sat, Sep 3, 2011 at 8:57 PM, Ankuj Gupta ankuj2...@gmail.com wrote: p is a pointer to an array of 4 integers. So when you do (int(*) [col])malloc(row*sizeof(*p)) total of 48 bytes is allocated as sizeof(*p) is 12 bytes. On Sep 3, 4:14 pm, rohit rajuljain...@gmail.com wrote: how many bytes are allocated by following code? #includealloc.h #define col 4 #define row 3 int main() { int(*p)[col]; p=(int(*)[col])malloc(row*sizeof(*p)); return 0; } please explain answer? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Doubt
ya code is perfectly fine.no error On Mon, Aug 29, 2011 at 12:07 AM, sagar pareek sagarpar...@gmail.comwrote: Success http://www.ideone.com/ZFgEh On Sun, Aug 28, 2011 at 3:13 PM, Aditya Virmani virmanisadi...@gmail.comwrote: it runs perfectly for me on both 64 bit 32 bit... check again On Sun, Aug 28, 2011 at 2:20 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote: The following C program segfaults of IA-64, but works fine on IA-32. *int* main() { *int p; p *=* (*int)malloc(*sizeof*(*int*)); ***p *=* 10; *return* 0; } Why does it happen so? -- Nikhil Gupta Senior Co-ordinator, Publicity CSI, NSIT Students' Branch NSIT, New Delhi, India -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- **Regards SAGAR PAREEK COMPUTER SCIENCE AND ENGINEERING NIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] C output
its output is 10 On Tue, Aug 23, 2011 at 12:03 AM, rohit rajuljain...@gmail.com wrote: #includestdio.h #define max(a,b) (ab?a:b) int main() { int j=max(3+2,2+8); printf(%d,j); return 0; } why this program show output as 9 ? please help me -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] Re:
Beta, puchna hi tha, to mujhse puchte! Anyways, you will get the solution in tomorrow's lecture @1pm. I have gone through your profile. See me in my cabin after the class. Make sure that you attend tomorrow's lecture. For now, study dynamic programming.. On Apr 3, 6:03 pm, SANDEEP AAMIN sandeep.aa...@gmail.com wrote: hey guys please help me to solve this QUESTION : input a number C , an output all of the ways that a group of ascending positive numbers can be summed to give C. for e.g if C=6,the output should be 1+2+3 1+5 2+4 [solve using dynamic programming] please tell me about this.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.