Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9318253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:04:42+00:00 2026-06-19T03:04:42+00:00

What are the differences between strict/non-strict ordering, weak/non-weak ordering, and partial/total ordering?

  • 0

What are the differences between

  • strict/non-strict ordering,
  • weak/non-weak ordering, and
  • partial/total ordering?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:04:44+00:00Added an answer on June 19, 2026 at 3:04 am

    Let X be a set. An relation < ⊆ X × X is a partial ordering if

    • for all x ∈ X, we never have x < x,

    • whenever x < y, we never have y < x, and

    • whenever x < y and y < z, we have x < z.

    A total ordering is a partial ordering with the additional property that for any two x and y, we have pre­cise­ly one of x < y, or y < x, or x = y.

    A weak ordering on a set X is (as far as I know) a partial ordering < with the additional property that the induced ordering on the quotient set X / ~ is a total ordering, where [x] = [y] ∈ X / ~ if and only if neither x < y nor y < x hold in X.

    In other words, in a partial ordering, some elements can be compared, and if they can be compared, the ordering is consistent. Examples of a partial orderings:

    • Proper subsets of a set X, where A < B means A &subsetneq; B.

    • Natural numbers with a < b meaning “a divides b“.

    • Template specializations in C++.

    A total ordering is one where all elements, all at once, form a single, consistent order.

    A weak ordering is a total ordering if you’re willing to lump several elements together and treat them as equivalent for the purpose of the ordering.


    The term “strict” refers to the use of “<” as a defining relation, as opposed to “≤”. You can see how it would be easy to rewrite all the definitions in terms of ≤, e.g. in a partial ordering we always have x ≤ x, etc.


    Here are two examples, both of C++ template specializations. Both are partially ordered, of course, but the first is also totally ordered.

    Example #1:

    template <typename T> struct Foo {};               // A1
    template <typename U> struct Foo<U*> {};           // A2
    template <> struct Foo<int*> {};                   // A3
    

    These specializations are totally ordered as A3 < A2 < A1, where “<” means “more specialized than”.

    Example #2:

    template <typename T1, typename T2> struct Bar {}; // B1
    template <typename U> struct Bar<int, U> {};       // B2a
    template <typename V> struct Bar<V, int> {};       // B2b
    template <> struct Bar<int, int> {};               // B3
    

    This time, we have B3 < B2b < B1 and B3 < B2a < B1, but B2a and B2b are not comparable.

    In C++, this manifests in the following way: If the specialization B3 were not defined, then attempting to instantiate Bar<int, int> would result in a compiler error because there is no unambiguous “most specialized” specialization.

    Partially ordered sets can have many “least” elements and “biggest” elements, because those notions can only speak about elements that are comparable. Among B1, B2a and B2b, both B2a and B2b are “least elements”, because there is no element that’s smaller. Nonetheless there isn’t a unique smallest element.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Where can I get a summary of differences between ActionScript 3.0 strict and standard
I know that one of the differences between classes and structs is that struct
The differences between StringBuilder and StringBuffer in Java are well documented and have been
There are any differences between using SetValue with (for example) Canvas.LeftProperty and Margin Property?
What are the differences between preg_replace() and preg_filter() ? In which situations should I
What are the main differences between these WPF controls? And when I should use
Are there any differences between LEA $1000,A0 and MOVE #$1000,A0 to put an address
I know the differences between IBAction and IBOutlet, but I don't know when I
What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
I'm looking for a simple java lib/src to highlight differences between two Strings, case-sensitive.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.