[algogeeks] PRAYATNA '12 - A NATIONAL LEVEL TECHNICAL SYMPOSIUM

2012-02-07 Thread sivaviknesh s
-- Forwarded message -- From: Harikannan Shanmugam harikannan.mi...@gmail.com Date: Tue, Feb 7, 2012 at 5:37 PM Subject: Fwd: PRAYATNA '12 - A NATIONAL LEVEL TECHNICAL SYMPOSIUM To: ananth...@gmail.com, arivu04@gmail.com, aru.valarpu...@gdit.com, aru.valarpu...@gmail.com,

[algogeeks] My symantec interview experiences

2011-10-04 Thread sivaviknesh s
Hope it will be useful :) -- 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,

[algogeeks] Amazon OS question

2011-09-24 Thread sivaviknesh s
A parallel program consists of 8 tasks – T1 through T8. Each task requires one time step to be executed on a single processor. Let X - Y denote the fact that task X must be executed before task Y is executed. Suppose only the tasks X, Y are to be executed. On any multiprocessor machine it would

[algogeeks] os ques about paging

2011-09-24 Thread sivaviknesh s
Consider a virtual memory system in which the virtual page addresses are mapped onto physical page addresses as follow Virtual page address.. Physical page address 03

[algogeeks] Time complexity

2011-09-21 Thread sivaviknesh s
for(i=0;in;i++) for(j=0;ji*i;j++) for(k=0;kj;k++) sum++; Is itn^5 log n . n * (n^2 log n) * (n^2 log n) ??? correct me if i m wrong? also anybody can tell some easy approach to tackle these ques ?? I worked out for some values of n and arrived at the ans.

[algogeeks] Symantec ques - Find maximum element without using comparison operators

2011-09-17 Thread sivaviknesh s
Two registers A and B. Initial Contents of the registers are unknown. Write a program to find MAXINT - The maximum positive unsigned integer The instructions available are: SHR reg1, op1 ADD reg1, op1 AND reg1, op1 NOT reg1. Op1 may represent any number or register. (Hint: The Shift operation is a

[algogeeks] Symantec System programming ques

2011-09-17 Thread sivaviknesh s
you have to write a program which tell about how many times it has run. ex: if you run first time it will print 1. if you run second time it will print 2. like this. this can easily done by File Handling but think other solution like IPC. after booting your system, your program's output start

[algogeeks] How one can measure time spent in context switch??

2011-09-17 Thread sivaviknesh s
if possible code plz -- Regards, $iva -- 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

[algogeeks] Array ques based on correlation factor

2011-09-17 Thread sivaviknesh s
Write a method fill up an array of size n - and returns the array to the caller - with the following conditions 1. the numbers shud be between 0 to n-1 2. no repeated numbers 3. the method should have a deterministic time to fill the arrays 4. arrays returned from the method should have

[algogeeks] Fwd: Interview question in Thoughtworks

2011-09-16 Thread sivaviknesh s
-- Forwarded message -- From: sivaviknesh s sivavikne...@gmail.com Date: Fri, Sep 9, 2011 at 12:23 PM Subject: Fwd: Interview question in Thoughtworks To: Pritpal Singh pritpal2...@gmail.com -- Forwarded message -- From: sasi kumar tmsasiku...@gmail.com Date

[algogeeks] Fwd: ThoughtWorks Programming Questions

2011-09-16 Thread sivaviknesh s
-- Forwarded message -- From: Sesha krishnan sesha.naraya...@gmail.com Date: Mon, Aug 22, 2011 at 6:04 PM Subject: Re: ThoughtWorks Programming Questions To: mitcse08i...@googlegroups.com All, We uploaded the thoughtworks interview questions from GCT yesterday @

[algogeeks] Fwd:

2011-09-16 Thread sivaviknesh s
-- Forwarded message -- From: sivaviknesh s sivavikne...@gmail.com Date: Fri, Sep 9, 2011 at 12:28 PM Subject: To: Pritpal Singh pritpal2...@gmail.com Interview Questions: Thoughtworks As said by senior- S.Abhinaya Round1: Logic test- some simple numerical problems.This doesn't

[algogeeks] Fwd: ThoughtWorks Programming Questions

2011-09-16 Thread sivaviknesh s
-- Forwarded message -- From: LOKE$[-] sripathi.karth...@gmail.com Date: Mon, Aug 22, 2011 at 4:13 PM Subject: Fwd: ThoughtWorks Programming Questions To: mitcse08info mitcse08i...@googlegroups.com With regards Lokesh Chandrakumar - Hi , Attached are the links to the

[algogeeks] C output????

2011-09-06 Thread sivaviknesh s
main() { char *p=persons; clrscr(); if(p==persons) printf(technical %s,p); else printf(true %s,p); return 0; } ..op : technical persons ..plz explain .. how come it works like an strcmp operation??? -- Regards, $iva -- You received this message because you are subscribed to the Google Groups

[algogeeks] c output .. help plz

2011-09-06 Thread sivaviknesh s
printf(%d,3.14*6.25*6.25); ...ans : 0 ..how and why?? why not type conversion take place?? -- Regards, $iva -- 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

[algogeeks] constructor ques

2011-08-22 Thread sivaviknesh s
you have 4 classes A,B,C,D and class Z is derived from all these classes using Class Z: public A,private B,Protected C, Virtual D What is the order of constructor call? ...plz reason out also -- Regards, $iva -- You received this message because you are subscribed to the Google Groups

[algogeeks] fork() question

2011-08-14 Thread sivaviknesh s
int main() { fork(); fork(); fork(); printf(Hello world!); } ...this will print hello world 8 times...i.e . 2^n times but... int main() { fork(); fork(); fork(); fork() printf(Hello world!); } http://ideone.com/TRKTE ..but this prints only 11 times -- and for five forks 25 times...plz

[algogeeks] Re: fork() question

2011-08-14 Thread sivaviknesh s
http://faq.programmerworld.net/networking/unix-interview-questions-answers.html refer 16 th ques in this site .. they ve told 2^n times..so only i asked whether its compiler dependent ?? On Sun, Aug 14, 2011 at 11:12 PM, sivaviknesh s sivavikne...@gmail.comwrote: int main() { fork(); fork

[algogeeks] virtual functions output

2011-08-01 Thread sivaviknesh s
#includeiostream #includestdio.h using namespace std; class Base { public: Base() { fun(); //note: fun() is virtual } virtual void fun() { cout\nBase Function; } }; class Derived: public Base { public: Derived(){} virtual void fun() { cout\nDerived Function; } };

[algogeeks] Frequently asked interview ques

2011-07-31 Thread sivaviknesh s
1. Given words in a newspaper as input find the words that have occured oly once 2. Find the 5 most repeating words in a given document ...Is there any other optimal solutions other than using map ?? -- Regards, $iva -- You received this message because you are subscribed to the Google

[algogeeks] Morgan stanely interview ques

2011-07-31 Thread sivaviknesh s
*Given an nxn screen, Each pixel is represented by intensity values. Given a specific pixel as an input, find the no. of pixels of the same colour which can reached from this pixel. Assume any suitable data structure for a screen. ..can this be implemented through BFS ...similar to BITMAP prob

[algogeeks] Re: Directi question-centre of the tree

2011-07-26 Thread sivaviknesh s
the question is clear..you draw the sample test case and work out .. you will understand 1 / / \ 4 2 3 /\ 5 6 here from node 2 the maximum cost to reach any node 'i' is 2 and minimum is 1 ...so M(2) = max(1,2)=2..the same is the case

[algogeeks] Re: Directi question-centre of the tree

2011-07-26 Thread sivaviknesh s
we can do like creating an adjacency matrix..populate all values i.e. cost to reach each node...finally find the nodes that has min value...any other gud solutions?? On Wed, Jul 27, 2011 at 2:16 AM, sivaviknesh s sivavikne...@gmail.comwrote: the question is clear..you draw the sample test

[algogeeks] Fwd: SORTING ARRAYS

2011-07-26 Thread sivaviknesh s
-- Forwarded message -- From: Padmaja Sridharan padmaja...@yahoo.in Date: Wed, Jul 27, 2011 at 5:15 AM Subject: SORTING ARRAYS To: mitcse08i...@googlegroups.com Given two arrays a[] = {1,3,2,4} b[] = {4,2,3,1} both will have the same numbers but in different combination. We have

[algogeeks] Hash map , hash table - DOUBTS!!!!

2011-07-24 Thread sivaviknesh s
what is the time complexity of a hash map??for insertion and searching are hash table and hash map same ?? can anybody give a good explanation with example or even suggest good links.thanks in advance :) -- Regards, $iva -- You received this message because you are subscribed

[algogeeks] ms ques

2011-07-18 Thread sivaviknesh s
Implement a C++ garbage collector efficiently..any ideas ??? ..shud we need to do something with destructor??? -- Regards, $iva -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Fwd: MICROSOFT INTERNSHIP (Coding round)

2011-07-18 Thread sivaviknesh s
-- Forwarded message -- From: subramania jeeva subramaniaje...@gmail.com Date: Thu, Sep 23, 2010 at 7:53 AM Subject: Re: MICROSOFT INTERNSHIP (Coding round) To: mitcse08i...@googlegroups.com Also in placement the question asked was Given a 2 dimensional matrix

[algogeeks] Fwd: MICROSOFT INTERNSHIP (Coding round)

2011-07-18 Thread sivaviknesh s
-- Forwarded message -- From: sivaviknesh s sivavikne...@gmail.com Date: Mon, Jul 18, 2011 at 11:29 PM Subject: Fwd: MICROSOFT INTERNSHIP (Coding round) To: algogeeks@googlegroups.com -- Forwarded message -- From: subramania jeeva subramaniaje...@gmail.com Date

[algogeeks] ms ques

2011-07-18 Thread sivaviknesh s
convert a number in base 5 to base 9 -- Regards, $iva -- 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