473,503 Members | 1,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need help in number of inversions in sorting

hello:

how many inversions there in S O T R M E ?

thank you

Nov 10 '06 #1
3 1640


xandra wrote On 11/10/06 12:58,:
hello:

how many inversions there in S O T R M E ?
C guarantees that all these character codes are positive
numbers, but says nothing about their values or their relative
order. Thus, your question is not answerable except in fairly
broad terms: "No fewer than zero and no more than fifteen."

If you want to impress your instructor with the depth of
your understanding, there's no better way to do it than to
submit an answer like the one above. At one stroke it shows
that you have mastered the material even better than your
teacher has, by pointing up a flaw in the homework assignment.
Since teachers are strongly interested in the increase of
knowledge and wisdom, you can expect to be thanked and suitably
rewarded. Good luck!

--
Er*********@sun.com

Nov 10 '06 #2

"xandra" <ja*********@yahoo.comwrote in message
news:fe******************************@localhost.ta lkaboutprogramming.com...
hello:

how many inversions there in S O T R M E ?

thank you
One - 'O' is the only letter that looks the same when inverted.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
Nov 10 '06 #3
Fred Kleinschmidt said:
>
"xandra" <ja*********@yahoo.comwrote in message
news:fe******************************@localhost.ta lkaboutprogramming.com...
>hello:

how many inversions there in S O T R M E ?

thank you

One - 'O' is the only letter that looks the same when inverted.
You missed S. Also, T, M, and E can be inverted in particular ways that do
not change their appearance. (Whether this is true in a given font is
another matter - but that's the case for O too.)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
Nov 10 '06 #4

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

Similar topics

10
8051
by: eLisHa | last post by:
i have an arraylist that gets it's values dynamiclly from the database, after paging, searching & more in the ASP.net file. What im trying to do, is sort the results that are sorted in the...
19
25424
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
8
1553
by: ianaré | last post by:
Hey all, if i use a os.walk() to append files to a list like so... files = root = self.path.GetValue() # wx.TextCtrl input filter = self.fileType.GetValue().lower() # wx.TextCtrl input...
3
7830
by: malik | last post by:
// Linked Lists in classes(excluding structures) without using tail pointer # include<iostream.h> # include<stdlib.h> void Swap(int num1, int num2) { int a = num1; num2 = num1; num2 = a;
2
1681
by: ross182 | last post by:
I have a simple query of a table that includes the date field. I want the end user to be able to run the query and have it ask the user to enter the date that the user wants to see information from....
1
1348
by: zoro | last post by:
there is a property in the book saying: block sorting on P processors using butcher's sort with merging comparators can sort N records in a bout (Log p)2/ 2 parallell sort. and i have question...
2
1779
by: wing ver ka gundam | last post by:
THanks~ this is the example and my quote are below Write a program in JAVA that allows the user to input 5 ints. The program will then output these five values in reverse order. The program will...
0
2164
by: Bangaru | last post by:
the problem is I have the code, sorting as below in the VSFlexGrid: VSFlexGrid1.Sort = flexSortStringNoCaseAscending I have a column that displays both Date and time When I get this grid...
1
1473
by: pyotr | last post by:
Hello,,,, I have a form with its subform that is filtered through the combination of two independent comboboxes to facilitate administration. However, I want to arrange/sort the viewed...
1
1733
pradeepjain
by: pradeepjain | last post by:
Hii, i need help in sorting multidimensianal array... i Read the multi sort function cld not use tht so i need help..This is the code. here the problem is tht i need to take out values...
0
7202
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,...
0
7280
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,...
0
7330
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...
0
7460
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...
0
5578
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,...
0
4672
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
0
380
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...

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.