473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,385 developers and data experts.

sorted order is always a unique sequence for same set of distinct elements

Claim: There may be only one sorted alignment in decreasing/increasing order such as
X1, X2, X3,...... when X1, X2, X3 are distinct numbers

PROOF IS DONE FOR DECREASING ORDER ONLY. SIMILARLY IT MAY BE PROVEN FOR INCREASING ORDER

Proof:



X1, X2, X3,...... is decreasing. We call this as order 1

Say there is any other order as order 2 which is a different permutation than order 1.

Say the difference in order 2 starts only after t-th element of order 1. That means till t-th element both the sequence are same.

let's write the orders again.


X1, X2, X3,......,X(t),X(t+1).... order 1 (decreasing)

X1, X2, X3,.......,X(t),Y(t+1),....,X(t+1).... order 2

Here X(t+1) is not uqual to Y(t+1) as we assumed.

Notice that X(t+1) must be somewhere after Y(t+1) in order 2, because both the orders are chosen from same set of elements.

But Y(t+1) was somewhere after X(t+1) in order 1. So X(t+1)>Y(t+1)

That means oder 2 violates decreasing order. So the proof is complete.
Sep 13 '13 #1
0 3594

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Louis Frolio | last post by:
Greetings All, I have read many upon many articles here regarding GUID data types and uniqueness. There have been many opinions regarding the effectiveness of GUID's and when they should/should...
0
by: MichaƂ Januszczyk | last post by:
is it possible to define schema for the following element ? : <processor><param>arial</param><param>3.5</param><param>50</param><param>95</param><param>some text</param></processor I want to...
3
by: Alpha | last post by:
This is a Window based application. How do I get my combox listing to display in sorted order by DataMember? I inserted a blank row to the dataset table which is the datasrouce for the comboBox...
8
by: Peter | last post by:
Hi, there I have created an stored procedure using the DDL below for my MS Access Database and no error occurs. Also it can create an stored procedure if I changed the parameter from "" to...
5
by: Antanas | last post by:
Hi folks. I need unique sequence object generated for each row returned form select statement. Here is my ADDID() UDF: CREATE FUNCTION DB2ADMIN.ADDID() RETURNS CHAR(6) NOT DETERMINISTIC F1:...
6
by: Kamilche | last post by:
I have a code snippet here that prints a dict in an arbitrary order. (Certain keys first, with rest appearing in sorted order). I didn't want to subclass dict, that's error-prone, and overkill for...
0
by: vincenzoelettronico | last post by:
I am making the pages asp of one library on-linens with visual study 2003. I have created the datagrid, the subroutine UpdateCommand. .now I want to avoid to always insert the same element....
2
by: klikic | last post by:
Hi. How can create a unordered sequence with defined elements that can occur ones and "other" elements that are ignored. Example: XML: <Recur> <ignoredElement>saasda</ignoredElement>...
2
by: EzeeGoN | last post by:
Using Flash8 Actionscript 2.0 i am looking for a method to generate sequential numbers in a random order (not using the same number twice) can anyone help please?
2
by: XML fellow | last post by:
hi, i would like to define a unique key in the XSD, and once generating a default XML out of it (using XSD2INST tool), the XML will automaticaly be populated with a unique sequence number. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...

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.