473,785 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

largest no

how can i pick up largest no from 5 rows by 5 column matrix????

Jun 6 '07 #1
38 2459
<be************ **@yahoo.co.ins chrieb im Newsbeitrag
news:11******** **************@ x35g2000prf.goo glegroups.com.. .
how can i pick up largest no from 5 rows by 5 column matrix????
By copmaring the first with the send, then the larted of that comparisn with
the 3rd, the larger of that with the 4th and so on until the 25th

Bye, Jojo
Jun 6 '07 #2
On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:
how can i pick up largest no from 5 rows by 5 column matrix????
Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.

Jun 6 '07 #3
ma**********@po box.com said:
On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:
>how can i pick up largest no from 5 rows by 5 column matrix????

Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.
I'm sure we can do better than O(c log c + r log r). Perhaps we should
specify a particular sort. That can get us right up to O(c^2 + r^2)
without any major effort. But can anyone find an exponential-time
algorithm?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 6 '07 #4
On 6 Jun, 11:29, Richard Heathfield <r...@see.sig.i nvalidwrote:
mark_blue...@po box.com said:
On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:
how can i pick up largest no from 5 rows by 5 column matrix????
Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.

I'm sure we can do better than O(c log c + r log r). Perhaps we should
specify a particular sort. That can get us right up to O(c^2 + r^2)
without any major effort. But can anyone find an exponential-time
algorithm?
There's a big problem here, though - how can we sort anything when we
don't know how to tell whether one thing is larger than another?

Jun 6 '07 #5
<ma**********@p obox.comschrieb im Newsbeitrag
news:11******** *************@o 5g2000hsb.googl egroups.com...
On 6 Jun, 11:29, Richard Heathfield <r...@see.sig.i nvalidwrote:
> mark_blue...@po box.com said:
On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:
how can i pick up largest no from 5 rows by 5 column matrix????
Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.

I'm sure we can do better than O(c log c + r log r). Perhaps we should
specify a particular sort. That can get us right up to O(c^2 + r^2)
without any major effort. But can anyone find an exponential-time
algorithm?

There's a big problem here, though - how can we sort anything when we
don't know how to tell whether one thing is larger than another?
Hmm, the OP talked abut 'no' wich I assume to mean 'number', so it probably
is some integral or floating point number, which are fairly easy to find the
larger.

Bye, Jojo
Jun 6 '07 #6
On 6 Jun, 12:25, "Joachim Schmitz" <nospam.j...@sc hmitz-digital.de>
wrote:
<mark_blue...@p obox.comschrieb im Newsbeitragnews :11************ *********@o5g20 00hsb.googlegro ups.com...
On 6 Jun, 11:29, Richard Heathfield <r...@see.sig.i nvalidwrote:
mark_blue...@po box.com said:
On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:
how can i pick up largest no from 5 rows by 5 column matrix????
Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.
I'm sure we can do better than O(c log c + r log r). Perhaps we should
specify a particular sort. That can get us right up to O(c^2 + r^2)
without any major effort. But can anyone find an exponential-time
algorithm?
There's a big problem here, though - how can we sort anything when we
don't know how to tell whether one thing is larger than another?

Hmm, the OP talked abut 'no' wich I assume to mean 'number', so it probably
is some integral or floating point number, which are fairly easy to find the
larger.
Finding the largest value in some set is a trivial extension of
finding which of two values is the larger - if the OP wanted us to
write code to do the former, it implies they probably can't do the
latter...
Jun 6 '07 #7
<ma**********@p obox.comschrieb im Newsbeitrag
news:11******** *************@p 47g2000hsd.goog legroups.com...
On 6 Jun, 12:25, "Joachim Schmitz" <nospam.j...@sc hmitz-digital.de>
wrote:
><mark_blue...@ pobox.comschrie b im
Newsbeitragnew s:11*********** **********@o5g2 000hsb.googlegr oups.com...
On 6 Jun, 11:29, Richard Heathfield <r...@see.sig.i nvalidwrote:
mark_blue...@po box.com said:
On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:
how can i pick up largest no from 5 rows by 5 column matrix????
Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.
>I'm sure we can do better than O(c log c + r log r). Perhaps we should
specify a particular sort. That can get us right up to O(c^2 + r^2)
without any major effort. But can anyone find an exponential-time
algorithm?
There's a big problem here, though - how can we sort anything when we
don't know how to tell whether one thing is larger than another?

Hmm, the OP talked abut 'no' wich I assume to mean 'number', so it
probably
is some integral or floating point number, which are fairly easy to find
the
larger.

Finding the largest value in some set is a trivial extension of
finding which of two values is the larger - if the OP wanted us to
write code to do the former, it implies they probably can't do the
latter...
To me it sounds like a homework assignment...
Jun 6 '07 #8
Joachim Schmitz wrote:
<ma**********@p obox.comschrieb im Newsbeitrag
.... snip ...
>>
Finding the largest value in some set is a trivial extension of
finding which of two values is the larger - if the OP wanted us
to write code to do the former, it implies they probably can't
do the latter...

To me it sounds like a homework assignment...
No! I can't imagine a student trying to pull such a scurvy trick.
Couldn't possibly be true!

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #9
ma**********@po box.com wrote:
Richard Heathfield <r...@see.sig.i nvalidwrote:
> mark_blue...@po box.com said:
>>On 6 Jun, 10:50, bele_harshad2.. .@yahoo.co.in wrote:

how can i pick up largest no from 5 rows by 5 column matrix????
>>Step 1. Sort the columns of each row into ascending order.
Step 2. Sort the rows into ascending order using the last column as
the key.
Step 3. Pick the last column of the last row.

I'm sure we can do better than O(c log c + r log r). Perhaps we
should specify a particular sort. That can get us right up to
O(c^2 + r^2) without any major effort. But can anyone find an
exponential-time algorithm?

There's a big problem here, though - how can we sort anything when
we don't know how to tell whether one thing is larger than another?
You apparantly totally missed the humor involved in RH's post.

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
12279
by: news1.on.sympatico.ca | last post by:
what is the literal for the largest character value in java? ie. 111 in binary is representing 7 (4+2+1) <-- this is 3 bit now java is 32 or 64 bit what is the largest character value ? thanks
2
8895
by: Keke922 | last post by:
I have to write a program that allows the user to enter a series of integers and -99 when they want to exit the loop. How do I display the largest and smallest number the user entered?
20
5105
by: Rajesh | last post by:
Hello Everybody, Can anybody help me to write a C program for finding the second largest element in an array. without using any sort algo. The array may conatin duplicate elements. The algo should run in O(n) time. Rajesh
19
8591
by: ramu | last post by:
Hi, I have, suppose 1000 numbers, in a file. I have to find out 5 largest numbers among them without sorting. Can you please give me an efficient idea to do this? My idea is to put those numbers into a binary tree and to find the largest numbers. How else can we do it? Regards
32
11444
by: ramakrishnadeepak | last post by:
HI Everybody, I 've to submit a program on c.Can any one help me plz.........The problem is like this:: Write a program which computes the largest palindrome substring of a string. Input: The input is the string whose largest palindrome substring should be
3
3952
by: HEMH6 | last post by:
Who can help solve this problem??? Finding the Largest Value (a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments. (b)Write a main program that inputs MAX values from the keyboard into a signed integer array, array, and points, using largest(), the largest value to the screen.
25
4372
by: Subra | last post by:
Hi, What is the best way to find the 1000 largest numbers from the file having hell lot of entries ? Can you please help me to find out the way ? Do I need to go for B+ trees ?? Please help, Subramanya M
4
7508
by: sonia.sardana | last post by:
I know how how to retrive the largest & second largest salary. tell me how to retrive the 3,4,5,...............Largest salary. Create table empl(empid int, empname varchar,salary int) insert into empl values(1,'A',100) insert into empl values(2,'B',200) insert into empl values(3,'C',300) insert into empl values(4,'D',400) insert into empl values(5,'E',500) insert into empl values(6,'F',600)
8
12187
crystal2005
by: crystal2005 | last post by:
I am writing a program that receive maximum of 25 line of string each has 20 characters maximum. The program will print the smallest and the largest string. However the following program gives me Segmentation fault (core dumped) :(( It looks simple but i have no idea what went wrong.... Can anyone help me out?? #include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX_INPUT 25
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.