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 1004545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:09:04+00:00 2026-05-16T08:09:04+00:00

Say I have a set (or graph) which is partitioned into groups. I am

  • 0

Say I have a set (or graph) which is partitioned into groups. I am interested to find the number of transitions between two partitions, where a transition involves taking an element out of one partition and moving it into another (or singleton partition by itself)

For example there is one transition between partitions

1 2 | 3 and 1 | 2 | 3

but between 1 2 3 4 and 1 2 | 3 | 4

The minimum number of transitions is 2 I believe.

So my question is are there algorithms that given a pair of partitions and a set, can return the number of transitions states between them?

There is a further complication that this set actually represents a graph and I would like every partition (and transition partition) to be connected (i.e. 1 2 | 3 would be invalid if there exists no in/direct connection between 1 and 2 unblocked by 3’s single partition) but unless you are truly enlightened about this topic you can much probably ignore that.

Thanks

As a note I do have a method I thought of myself which is basically to find all neighbours of a partition A (i.e. all partitions which can be found within one transition) and do the same for partition B and if these is some overlap between these two sets of neighbours then they are one transition away. However this method gets very expensive very quickly.

  • 1 1 Answer
  • 1 View
  • 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-05-16T08:09:06+00:00Added an answer on May 16, 2026 at 8:09 am

    I would expand on your method a little bit, and essentially build a graph and do a graph search. The vertices of the graph would be a valid partitioning of the set and the edges would be transitions. You can actually build and search at the same time and only build the portion of the graph necessary for the search.

    To do this I would use an A* (or other best-first search) and at each step, generate all the neighbors of the current partition. The tricky part is determining the best heuristic for the A* search. You can probably estimate the number of transitions by assuming that all transitions would result in connected partitions (basically, ignore your constraint).

    This is obviously expensive, but you save on time and space by using a best-first search and by generating the graph as you go.

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

Sidebar

Related Questions

I have set up a Core Data model where I have two objects, say
I have a set of rows which I've fetched from a table. Let's say
Say I have set up the following function f[a,b,c] which I wish to plot
Say I have a set myset of custom objects that may be equal although
Lets say you have a set: foo = {1, 2, 3, 4, 5} In
let's say I have this set of HTML-markup and CSS #CSS .inputhelp_text { background:
I have set a cookie in my jsp page say(A). and set its path
Lets say I have model inheritance set up in the way defined below. class
I have a set of tables (say Account, Customer) in a schema (say dbo)
Say I have a class that looks like this (get/set omited): class InfoClass{ String

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.