473,795 Members | 2,922 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
38 2461
Chris Dollin said:

<snip>
Use all the smileys you like -- take my spare ones if you will.
He's already pinched all mine. I think he's going for a global monopoly.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 7 '07 #31
ma**********@po box.com wrote:
On 7 Jun, 11:57, Richard Heathfield <r...@see.sig.i nvalidwrote:
>Chris Dollin said:

<snip>
Use all the smileys you like -- take my spare ones if you will.

He's already pinched all mine. I think he's going for a global monopoly.

Do you recommending declaring those in header files?
I haven't a clue about whether that's too risky. You might have to
scrabble around -- the history of the world makes it likely -- to
acquire the right careers. Once in a blue moon, some campaign
against smileys might succeed ...

--
"We did not have time to find out everything /A Clash of Cymbals/
we wanted to know." - James Blish

Hewlett-Packard Limited Cain Road, Bracknell, registered no:
registered office: Berks RG12 1HN 690597 England

Jun 7 '07 #32
Chris Dollin said:
ma**********@po box.com wrote:
>On 7 Jun, 11:57, Richard Heathfield <r...@see.sig.i nvalidwrote:
>>Chris Dollin said:

<snip>

Use all the smileys you like -- take my spare ones if you will.

He's already pinched all mine. I think he's going for a global
monopoly.

Do you recommending declaring those in header files?

I haven't a clue about whether that's too risky. You might have to
scrabble around -- the history of the world makes it likely -- to
acquire the right careers. Once in a blue moon, some campaign
against smileys might succeed ...
And that will be the end of civilization as we know it, or something
equally trivial.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 7 '07 #33
On 7 Jun, 12:49, Richard Heathfield <r...@see.sig.i nvalidwrote:
Chris Dollin said:
mark_blue...@po box.com wrote:
On 7 Jun, 11:57, Richard Heathfield <r...@see.sig.i nvalidwrote:
Chris Dollin said:
><snip>
Use all the smileys you like -- take my spare ones if you will.
>He's already pinched all mine. I think he's going for a global
monopoly.
Do you recommending declaring those in header files?
I haven't a clue about whether that's too risky. You might have to
scrabble around -- the history of the world makes it likely -- to
acquire the right careers. Once in a blue moon, some campaign
against smileys might succeed ...

And that will be the end of civilization as we know it, or something
equally trivial.
Mornington Crescent!

Jun 7 '07 #34
Tak-Shing Chan wrote:
On Thu, 7 Jun 2007, Chris Dollin wrote:
>Joachim Schmitz wrote:
>>"CBFalconer " <cb********@yah oo.comschrieb im Newsbeitrag
>>>You apparantly totally missed the humor involved in RH's post.

Me too I must admit. Isn't that what smileys have been invented
for?

Smileys are a (n ubsubtle) replacement for tone-of-voice and so
should be omitted when wouldn't use the tone-of-voice signal,
such as in written text.

Subtle humours are linguistic puzzles in disguise and so
should be omitted when these off-topic elements are lowering the
signal-to-noise for the newsgroup, such as comp.lang.c.
Oh come on. Then everyone would go away, and the news-group would
be totally barren, except for those complaining about something or
other.

--
<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 7 '07 #35
be************* *@yahoo.co.in wrote:
how can i pick up largest no from 5 rows by 5 column matrix????
Depends on how you measure your 'no's.

If it is by font size, then you will have to
rely on your OS/GUI to determine their sizes,
which is off-topic for this group.

If it is by number of characters, then it
should always be 2. If you allow usage
of foreign versions of 'no', then you will
need to use strlen(), and a dictionary lookup
to select just those words defined to be
'no'.

If you are using some other form of
measurement, please give us a better set of
specifications.

Since this sounds like a homework assignment,
please give us your teachers address to send
the responses to.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jun 7 '07 #36
Keith Thompson wrote:
CBFalconer <cb********@yah oo.comwrites:
>Keith Thompson wrote:
>>Richard Heathfield <rj*@see.sig.in validwrites:
Tor Rustad said:
... snip ...
>>>>Arrgh.. exponential-time??! The worst sorting algorithms I know,
are O(N^2). :-/
>
I can't remember Knuth or Sedgewick, discussing anything worse
than that.
>
Give a hint please..
Well, let's see now...

while not sorted
exchange two elements at random
endwhile

That would do it, I think.
If the exchanges are truly random, that's not guaranteed to
terminate, so it doesn't qualify as an algorithm.
Yes it is, given sufficient time and a really random generator :-)

No, it's not. A truly random generator can generate any possible
sequence, including a sequence that causes the code to repeatedly swap
the first two elements forever. The worst-case behavior is that it
never terminates.
Correct.
It isn't certain to terminate, but it terminates in some finite time
with probability 1.
That is a really deep one, but I also beleave it's correct, typically a
topic my brother try to explain when we both are drunk. I never get it.

In any case, this stopped being about C some time ago.
Sure, but if the student (OP) follow this far, he would learn something!

--
Tor <torust [at] online [dot] no>
Jun 7 '07 #37
Tor Rustad <to********@hot mail.comwrote:
Keith Thompson wrote:
CBFalconer <cb********@yah oo.comwrites:
Keith Thompson wrote:
Richard Heathfield <rj*@see.sig.in validwrites:
while not sorted
exchange two elements at random
endwhile

That would do it, I think.
If the exchanges are truly random, that's not guaranteed to
terminate, so it doesn't qualify as an algorithm.
Yes it is, given sufficient time and a really random generator :-)
No, it's not. A truly random generator can generate any possible
sequence, including a sequence that causes the code to repeatedly swap
the first two elements forever. The worst-case behavior is that it
never terminates.

Correct.
It isn't certain to terminate, but it terminates in some finite time
with probability 1.

That is a really deep one, but I also beleave it's correct, typically a
topic my brother try to explain when we both are drunk. I never get it.
It is guaranteed to terminate in _some_ finite time, but whatever finite
time you choose to wait for it to terminate in, there is a non-zero
possibility that it may terminate in longer than that. Very sloppily
put, it will eventually terminate, but that termination point may be at
T+1, for _all_ finite T. (Even more sloppily put, it must terminate, but
it may do so at T=infinity. Which, in mathematics, is not the same thing
as not terminating at all, at any time.)

Richard
Jun 8 '07 #38

<be************ **@yahoo.co.inh a scritto nel messaggio
news:11******** **************@ x35g2000prf.goo glegroups.com.. .
how can i pick up largest no from 5 rows by 5 column matrix????
Use a variable (which I'll call max) to hold the element in the top
left corner, then loop through rows and columns, and, wherever you
find a number greater than max, assign it to max.
Jun 8 '07 #39

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
8896
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
5106
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
8592
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
4373
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
7509
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
12190
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
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10439
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...
1
10165
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
10001
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...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7541
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
6783
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();...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.