473,569 Members | 2,839 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 1649


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*********@ya hoo.comwrote in message
news:fe******** *************** *******@localho st.talkaboutpro gramming.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*********@ya hoo.comwrote in message
news:fe******** *************** *******@localho st.talkaboutpro gramming.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
8064
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 ArrayList, each time by another field. The ArrayList contains a list of a class which i built, that fits these results. I was told to use a IComparer with...
19
25438
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 sort columns based on the column header the user has clicked in both Ascending and Descending formats.
8
1555
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 not_type = self.not_type.GetValue() # wx.CheckBox input for base, dirs, walk_files in os.walk(root):
3
7838
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
1685
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. How can I accomplish this?
1
1357
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 depinding in this property asking how many parellel steps would be required to sort 100,000 records using 32 processors? my answer was (log32) =...
2
1785
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 then output the values in order with a statement on how many of the remaining values are larger, smaller, or equal. Example 1: Input: 1 2 3 4
0
2169
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 populated the first time, the Sort works. when I select a different condition to populate the Grid, then when I sort clicking on the column that has...
1
1479
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 results according to one Field which is the Start (date).
1
1743
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 from 2 different tables.i am getting the output properly but only thing is tht i need to sort the o/p as per name here fid=6 is designation..uid...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8119
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...
1
7668
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...
0
7964
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...
1
5509
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...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
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
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
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...

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.