Abstract
We studied the stable marriage problem with dynamic preferences. The dynamic preference model allows the agent to change its preferences at any time, which may cause instability in a matching. However, preference changing in SMP instances does not necessarily break all pairs of an existing match. Sometimes, only a few couples want to change their partners, while others choose to stay with their current partners; this motivates us to find stable matching on a new instance by updating an existing match rather than restarting the matching process from scratch. By using the update mechanism, we try to minimize the revision cost when rematching occurs. The challenge when updating a matching is that a cyclic process may exist, and stable matching is never achieved. Our proposed mechanism can update a match and avoid the cyclic process.
1. Introduction
Numerous types of research have been conducted on the stable matching problem in fields including computer science, mathematics, and economics. The term “matching” refers to a collection of agents wishing to form a pair that meets each agent’s criteria. The stable marriage problem (SMP) was introduced by Gale and Shapley []. It is one of the most well-known stable matching problems. Since its original conception in 1962, the SMP has attracted significant attention from researchers. Numerous extended variants of SMP have also emerged, such as the stable roommate problem, the college admissions problem, the hospital/resident problem, and several other stable matching problems [,,,]. The SMP algorithm has been widely used to solve several real-world problems. One of the most widely used variants is the hospital/resident problem variant [,], which is used to place medical students in hospitals or to select new students. Nowadays, the SMP algorithm is also widely applied to large-scale computer applications, such as content delivery networks [] and job scheduling of virtual machines to servers [,].
The SMP is a bipartite matching problem with an equal number of agents on each side. Each agent expresses a strict order preference that includes all members of the opposite side. A matching is unstable when at least one blocking pair exists. A blocking pair is formed of a man m and a woman w who are not partners in a matching , but prefer each other over their current partners. In the classical SMP, each agent expresses a strict order preference for the opposite side. However, in real-world situations, some agents are occasionally unable to express their actual preference list due to a lack of information or observations about the opposing side, leading to the agents’ preferences changing dynamically. For example, consider job scheduling for virtual machines (VMs) to servers. Computer resource consumption is dynamic, and users must understand the behavior of their virtual machines to define the minimum and maximum resource requirements before deploying to the server. However, several users do not have the ability to define the minimum and maximum resource requirements for their virtual machines. If the assigned resources exceed the actual usage of their VM, this leads to a large amount of unused resources on the server. Meanwhile, the VM’s performance suffers if the allocated resources are insufficient. All virtual machines and servers need to be rescheduled to improve their effectiveness. When rescheduling, the scheduler determines the new preference for VMs and servers by examining the VMs’ historical information. This study aims to find a stable matching for the SMP with the dynamic preference model, where dynamic preferences refer to a scenario in which agents’ preferences might change dynamically over time. To illustrate the problem, we use a simple 3 × 3 SMP.
Example 1.
There is a set of men M = {} and a set of women W = {}. Assume that agent has dynamic preferences by changing his preference order. Specifically, these dynamic preferences generate two SMP instances, as depicted in Figure 1:
Figure 1.
The 3 × 3 SMP with dynamic preferences.
Traditionally, we can use the Gale–Shapley algorithm to find a stable matching solution for each instance. In Example 1, we can find the stable matching for Instances 0 and 1 by processing it separately. However, a change in preference for an agent does not necessarily affect the stability of all pairs in a matching. Some small preference changes may not affect all agents, and only a few pairs want to change their partners, while others prefer to stay with their current partners. This motivates us to maintain stability in the SMP with dynamic preferences by using a matching-updating mechanism. The SMP with dynamic preferences is an extended version of the original SMP; the goal is to obtain a stable matching on the SMP instance. The Gale–Shapley algorithm is one way to find a stable matching for the SMP; by starting with an empty matching, the Gale–Shapley algorithm takes to find a stable matching. This study does not focus on the computational costs of finding a stable matching, but we try to minimize the revision costs when preferences change. The definition of revision cost here is the cost/impact when we rematch the instance. Using the Gale–Shapley algorithm, we can always find a stable matching, but the rematching process starts from the beginning (empty matching). We try to minimize the revision cost when rematching by using the match-updating mechanism. As a practical example, when we perform rematching between VMs and servers, if we perform the rematching using the Gale–Shapley algorithm, we need to involve all agents in the instance, which means all VMs and servers need to temporarily stop. However, we can minimize the number of VMs and servers that have to stop with the match-updating mechanism.
Our contribution in this research is the minimization of the revision cost when performing the rematching. Our theorems and mechanism demonstrate the process of finding stable matching by updating the previous matching. Our paper is organized as follows. Section 2 contains a number of studies relevant to this research. In Section 3, we discuss how to deal with dynamic preferences in the stable marriage problem by updating the previous stable matching. In Section 4, we discuss our findings and their impacts on future research. In Section 5, we provide the conclusions of our study.
2. Preliminaries
In this study, we deal with SMP instances that have dynamic preferences. In the dynamic preference model, the agent is allowed to change their preferences. The agent’s preference changes may affect the original SMP instance. In other words, changing the preference of one agent will create another SMP instance. Numerous studies on dynamic preferences in stable matching have been published. Kanade et al. [] proposed an algorithm that maintains a matching for evolving preferences of stable matching. Evolving preference is similar to our dynamic preference model. The goal of their study was to maintain an approximately stable matching, whereas our goal is to find the stable matching for all available instances. Chen et al. [] proposed the concept of robustness and the near-stability of matching for dynamic preferences. Tobustness means maintaining all instances produced by dynamic preferences that remain stable in a classical way, whereas near-stability tries to find the stability by measuring the strength of incentive between two agents in a blocking pair.
The aim of this study is to find a stable matching within dynamic instances by updating a previous stable matching. With respect to the creation of a new instance, the previous stable matching may be stable or unstable for the newly created instance. In order to update a stable matching, we need to identify the presence of a blocking pair in the matching. If no blocking pair is confirmed, it means that the given matching from the previous instance remains stable in the newly created instance. However, when a blocking pair is encountered in the matching, we need to satisfy the blocking pair. Otherwise, the matching will remain unstable. When updating a matching, it is essential to keep in mind the domino effect while we attempt to satisfy the blocking pair. The domino effect of attempting to satisfy the blocking pair means that we also need to break another pair. Furthermore, we must be able to re-satisfy the pair that was previously disengaged by the previous step. When we attempt to revise a pair in matching, the worst-case scenario is that an infinite loop occurs in a process. As in the open question of Knuth [], which states that there is a cyclic process when attempting to satisfy the blocking pair using the Gale–Shapley algorithm, this situation leads to the matching remaining unstable. Knuth’s open question also shows that updating a stable matching using the Gale–Shapley algorithm is not possible.
Roth and Vande [] demonstrated in their work that stable matching is always possible, even when starting with arbitrary matching. Additionally, this research addressed Knuth’s [] open question. Jinpeng Ma [] examined the Roth and Vande (RV) mechanism and admitted that stable matching will always be found with a probability of one when using the RV mechanism, even though it starts from arbitrary matching. Unlike the Gale–Shapley algorithm, which always produces the same stable matching, the RV mechanism could produce a variety of stable matchings for each execution, including man-optimal, woman-optimal, and some fair matching (intermediate) in the lattice structure. However, Jinpeng Ma also claimed that in the RV mechanism, not all stable matching options can be achieved using the RV mechanism. In our study, we try to update the stable matching by modifying the Roth and Vande mechanism. In our dynamic preference model, we have the previous SMP instance and its stable matching. Furthermore, we use those properties as input for our proposed algorithm.
2.1. The Stable Marriage Problem
The stable marriage problem (SMP) was introduced by Gale and Shapley []. An SMP is a two-sided matching problem with an equal number of agents on each side. Each agent expresses a strict order preference that includes all members of the opposite side. The goal of the Gale–Shapley algorithm is to find a stable matching for all involved agents. The term “matching” refers to the process of pairing or matching participants (groups of men and women) in order to satisfy a specified criterion. A matching process is a step to determine the pairs of participants (sets of men and women) to meet the specified criteria. The size n of the SMP instance is , where M denotes the set of male agents , W denotes the set of female agents , and L represents a list of the preference order of an agent for the opposite sex. To express the preference order list of agent , we can denote it by . For such an instance, a matching is a one–one correspondence between the men and the women. If a man m and a woman w are matched in , they are referred to as partners, and we write and . is the partner of w in , and is the partner of m in . In the SMP, the stability of matching is determined by the existence of a blocking pair. In a matching , a pair is said to be a blocking pair if m and w are not a pair in , but m prefers w over and w prefers m over . That is, . A matching that contains at least one blocking pair is called unstable; otherwise, it is stable.
2.2. Dynamic Preferences in the SMP
In the traditional SMP, each agent’s preference order or rank is fixed. As discussed in the introduction, we attempted to solve the SMP with a dynamic preference model. In this study, we assume that the preference list of agents is complete, meaning that each agent must include all available members of the opposite side in their preference list. As illustrated in Figure 2, a preference change of agents in the SMP instance may lead to the creation of another SMP instance.
Figure 2.
Illustration of solving every instance of the SMP using the Gale–Shapley algorithm.
Definition 1.
The dynamic preferences describe a situation in which an agent’s preference for an SMP instance can change through permutation at anytime, leading to the formation of another SMP instance.
As a consequence of the preference changes, a new instance will be created based on the number of preferences expressed by agents.
Definition 2.
A dynamic instance is a set of SMP instances generated from an original SMP instance with dynamic preferences.
Dynamic preferences result in a more realistic scenario for a stable matching problem in which agents do not always express their preferences correctly due to a lack of observations or information about their opposite side. In the classical SMP, an instance is defined as , where M and W denote the sets of male and female agents, respectively; L denotes the order of each agent’s preference list for the opposite side. The preference list of a male agent m can be written as L(m). However, in the case of the SMP with dynamic preferences, multiple SMP instances may exist as a result of changes in one or more agents’ preferences. In other words, the number of possible instances that will occur is , where k denotes the number of preferences expressed by each agent, and n is the size of the SMP. The dynamic instance set is . For example, if there is a single agent with two distinct preferences in size n of the SMP, there will be two SMP instances available. In the dynamic preference model, changes in an agent’s preferences are a permutation of their previous preference list. This means that no new members will be added or removed from an agent’s preference list during the preference changes.
3. Updating the Stable Matching
As mentioned in the introduction, our goal is to find a stable matching for each instance. This study attempts to find stable matching for each instance by updating the previous instance’s stable matching. The steps of finding stable matching using the previous matching update mechanism are depicted in Figure 3.
Figure 3.
Illustration of finding the stable matching of the SMP by updating the previous matching.
Our steps for determining stable matching for a dynamic instance are as follows:
- Determining the impacts of modifying an agent’s preferences: We identify the effects of changing an agent’s preference and determine whether it leads to the occurrence of a blocking pair in a matching.
- Initiating an update of the matching if a blocking pair exists.
- If there is no blocking pair, the previous instance’s matching will likely be stable for the new instance.
3.1. Identifying the Preference Changes
The preference change of an agent does not always affect the stability of a previous matching. We classify the types of changes in an agent’s preferences as either major or minor changes.
Definition 3.
A minor preference change is a permutation-based change in an agent’s preference that does not affect the pair in a stable matching. As a result, this preference change has no direct impact on the creation of blocking pairs.
Definition 4.
A major preference change is a permutation-based change in an agent’s preference that leads to the creation of a blocking pair. These preference changes may result in the instability of a matching.
Every agent is allowed to change their preferences at any time in the dynamic preference model. A change in an agent’s preference does not always lead to a change in matching. However, it can occasionally allow for the appearance of blocking pairs, leading to the instability of a previous matching.
Given an SMP with dynamic preferences of size n and with the initial instance and stable matching , where , if we suppose that a male agent () changes his preference through permutation, we will have another instance of the SMP: , where . By referencing the previous SMP instance, we determine the occurrence of potential blocking pairs. We identify whether the preference change for agent is a minor change or not.
Theorem 1.
Under the assumption that the preference change occurs on only one side, and if no agent with a rank lower than in becomes higher than in , the change is considered minor.
Proof.
Assume that the position of agent in is the rank; this means that agents from the first rank to the rank in prefer other male agents over . The agent at the rank is a worse agent than , which means that is the best option for at (man-optimal). Thus, as long as the agent’s position remains lower than in , any permutation in the agent from the 1st rank to in does not affect the pair (, ). This results in = . □
Based on Theorem 1, we describe the following corollaries.
Corollary 1.
If is the last choice of in , then any permutation in leads to minor change.
Proof.
If is the last order in , is considered the best choice that can get because other female agents prefer other male agents over . As a result, (, ) will not change, although the rank of increases in . □
Corollary 2.
If becomes the first choice of in , then it is a minor change.
Proof.
If is the first option in , then no agent that is worse than in becomes better than in . Moreover, if the rank of increases in , it strengthens the pair between and . □
Corollary 3.
If there is any permutation in from the first rank to or any permutation from the rank of + 1 to the rank, then it is a minor change.
Proof.
The permutation of the first rank to does not lead to a worse agent being superior to . Meanwhile, permutations from the rank of +1 to the lowest-ranked agent will also be inferior to . According to Theorem 1, it is a minor change if no agent worse than at improves in . □
Theorem 1 and its corollary define the constraints under which the effect of changing agents on male agents (proposing side) can be identified. However, Theorem 1 and its corollary hold true when female agents (the proposed side) possess a change in their preferences. We identify the impact of changing an agent’s preferences using Theorem 1 and its corollary and whether the change has the potential to lead to the establishment of a blocking pair in the new instance or not. This identification accelerates the decision making regarding updating a matching.
We define Algorithm 1 to detect potential blocking pairs based on Theorem 1 and its corollaries. If Theorem 1 and its corollaries are satisfied in an agent, the agent might not have an incentive to change his/her partner. However, if Theorem 1 and its corollary are not satisfied, a deeper checking process using the stability-checking algorithm [] will be performed. If a blocking pair is detected, the algorithm will mark the pair for removal and initiate the update of the matching process.
Theorem 1 assumes that the preference changes only occur on one side. Theorem 1 is used to determine the type of preference change that occurs in an agent, i.e., whether it is a major or minor change. The aim is to determine whether the preference changes incentivize an agent to change their partner. By checking the type of preference change for all agents with Theorem 1, we are still able to identify the potential blocking pair, even though both sides of the agents change their preferences simultaneously. Given an SMP with dynamic preferences of size n and with initial instance and stable matching μ0, where , if we suppose that a male agent () and his partner () change their preference simultaneously, we will have another instance of the SMP: , where and .
| Algorithm 1 Finding a potential blocking pair. |
| Input: -Current SMP Instance: mPref, wPref -Previous SMP Instance: prevMPref, prevWPref, Stable Matching (SM)
|
Corollary 4.
If and confirm a minor change in , then the pair (, ) does not trigger a blocking pair.
Proof.
If agent confirms that his preference change is minor, is the best possible woman that agent can get. In addition, if agent also confirms that her preference change is minor, then agent is the best possible option for agent because the proposer is . Thus, if both agents agree that their current partners are the best partners they can get, then the preference changes of agents and do not have the potential to create a blocking pair. □
It is worth noting that Theorem 1 is employed to determine whether a change in an agent’s preference can motivate an agent to change their current partner. Theorem 1 is used to verify agents’ wishes about their partners following their preference changes. In other words, although both agents in a pair confirm a minor change, the pair is still likely to change if provoked by another agent that does not confirm a minor change.
3.2. Initiating the Matching Update
Once a blocking pair is confirmed to exist in a matching, the next step is to initiate a matching update. We modified Roth’s and Vande’s mechanism to update the stable matching. Random Paths to Stability [] is a mechanism for discovering a stable matching solution by satisfying the matching’s blocking pair. Ref. [] summarized the RV mechanism and admitted that stable matching can always be achieved with a probability of one starting from satisfying blocking pairs in arbitrary matching. Roth’s and Vande’s work can be analogized as follows:
- Imagine that there is one room with one entrance; randomly select a pair from each matching process. Let the selected pair enter the room. The selected pair can be confirmed as a stable matching in this room because no other choice can break the pair. Meanwhile, the rest of the agents form a queue outside the room to enter the room one by one.
- Ask an agent who is in front of the room to enter the room. There will be a matching process inside the room. The door of the room will remain closed before a stable matching is formed in the room.
- Repeat the second step until there are no remaining queues and a stable matching is obtained. As a result, a stable matching will be obtained without any blocking pairs.
The RV mechanism begins the matching process by asking a single random pair to enter the room. Typically, a blocking pair will be selected in the initialization process. Following that, the remaining agents in the queue will be asked to enter the room separately. In the RV mechanism, new agents are not permitted to enter the room until all agents in the room reach stability. Therefore, this motivated us to shorten the finding of stable matching in the RV mechanism. The RV mechanism begins the matching process with a single pair for the initial part, while our proposed algorithm enables the initial process with multiple pairs. This significantly speeds up the process of finding stable matches by introducing multiple pairs into the room simultaneously. Here is our mechanism for updating a stable matching:
- Imagine that there is one room with one entrance; select some pairs that have been confirmed as a stable matching. Let of all the selected pairs enter the room together. Meanwhile, the rest of the agents form a queue outside the room to enter the room one by one.
- Ask an agent who is in front of the room to enter the room. There will be a matching process inside the room. The door of the room will remain closed before a stable matching is formed in the room.
- Repeat the second step until there is no remaining queue and a stable matching is obtained. As a result, a stable matching will be obtained without any blocking pairs.
Figure 4 shows an illustration of the original RV mechanism and our updating mechanism. Our mechanism allows more than one pair to enter the room at the initial stage.
Figure 4.
Comparison of the original Roth and Vande mechanism (a) and our update mechanism (b).
3.3. Reducing the Previous Matching
Given an SMP of size n with an instance , where {}, {}, the matching is unstable if there exists a blocking pair such that for , where and . Equivalently, the stability for matching can be expressed as: ∨ for , where and .
Theorem 2.
If we remove any one pair from the stable matching μ and SMP instance I, the reduced matching will remain stable for the reduced instance .
Proof.
Without loss of generality, we assume the removal of . Then, and , . The stability condition for the matching is expressed as: for , where and .
When we remove from the preference list of women and from the preference list of men, there are only two possibilities for men: prefers to the partner in the stable matching , or prefers the partner to in the stable matching . Likewise, there are only two possibilities for women, which makes 2 × 2 = 4 combined cases altogether. We will check the stability condition above for the reduced matching for the reduced instance .
Case 1: If and , then the statement for the stability condition of matching is true.
Case 2: If and , then the statement for the stability condition of matching is true.
Case 3: If and , then both statements and for the stability conditions of matching are true.
Case 4: If and , since both conditions of agents cannot directly provide the true statement, then we need further investigation for this condition: and are a pair and are also in . Then, we can write and . If we remove from the men’s preferences, then increases; still, we cannot confirm whether becomes ’s first choice or not. If we assume that is not ’s first choice, then prefers another woman over , that is, . Currently, the partner of is . Since is stable, then is not possible in , although we also remove from the women’s preferences. Then, and never become partners in . Thus, the statement holds true for the stability condition of matching . The true condition holds for all possible combinations of pair removals. That said, the stability condition for matching still holds true. □
As discussed in Section 3.2, we meant to obtain as many pairs as possible for the initial stage. The pairs wishing to enter at the initial step must be stable with each other. Therefore, we reduce the size of the previous matching to obtain a stable matching with a smaller size. The reduction procedure is performed by removing the unwanted pairs (m, w) from a matching that causes the formation of a blocking pair. It should be noted that removing m and w from the previous matching is not permanent. The removal is intended to keep the remaining pairs stable. Thus, the stable reduced matching can be used as the initial stage for finding a stable matching. To accomplish this, we must introduce a procedure for determining which pairs to exclude from the matching . By using Theorem 2, we can safely remove any pair from the previous matching to get the reduced stable matching.
Consider the following examples in Figure 5.
Figure 5.
A 4 × 4 SMP instance before reduction.
We have stable matching (man-optimal) {}. Now, we will try to reduce the instance by randomly removing one pair in the stable matching. Suppose that we remove (). Thus, the size of the SMP instance will change to 3 × 3, as depicted in Figure 6.
Figure 6.
A 4 × 4 SMP instance before reduction.
Figure 6 shows the result of reducing the SMP instance from 4 × 4 to 3 × 3 by randomly deleting one pair, which keeps the reduced matching stable with respect to the reduced instance.
Example 2.
Given the SMP instance I = (M, W, L), a set of men M = , and a set of women W = , we assume that agent changes his preference and generate two SMP instances, as depicted in Figure 7:
Figure 7.
The 5 × 5 SMP instances with dynamic preferences.
The stable matching of instance 0 is = {}. Now, we want to find the stable matching of instance 1 by updating . Comparing and , it is known that the pair will become a blocking pair in matching if we use as the preference. blocks and in matching . By using Theorem 2, we allow the removal of the pair . Removing from instance 1 will produce the reduced matching = {}, which is stable with respect to the reduced SMP instance (). As illustrated in Figure 4b, members of may immediately enter the room together. Meanwhile, the removed pair forms a queue outside the room.
Algorithm 2 summarizes our work in this study. By combining Algorithm 1 with the reduced pair, we can start updating the previous matching and obtain the new stable matching for a new instance. Since we can start the initial stage by processing several pairs simultaneously, the revision cost of rematching can be minimized.
3.4. Controlling the Matching Orientation
An exciting aspect of the RV mechanism is the variety of the stable matchings obtained. Unlike the Gale–Shapley algorithm, which always provides the same stable matching, the RV mechanism can produce a different stable matching for each execution. While it is impossible to guarantee that all stable matchings in the lattice structure are obtained, man- and woman-optimal matching can be guaranteed. According to Jinpeng Ma’s research, certain circumstances can result in a stable match that leads to a particular orientation or, at the very least, in close proximity to the optimal orientation within the lattice structure. According to his study, if the last agent in the matching process is a male agent, a man-optimal or fairly stable match is obtained that is close to the man-optimal orientation in the lattice structure. In the opposite direction, if the last agent in the matching process is a woman, it will obtain a woman-optimal or fair stable matching that is close to the woman-optimal orientation in the lattice structure. This allows us to control the orientation of the stable matching that we want to produce by sorting the queueMember variable in Algorithm 2. By simply putting all male agents at the end of the queue, we will be able to obtain the man-optimal matching, or we can put all the female agents at the end of the queue if we want woman-optimal matching.
| Algorithm 2 Updating stable matching. |
| Input: -Current SMP Instance: mPref, wPref -Previous SMP Instance: prevMPref, prevWPref, Stable Matching (SM)
|
4. Discussion
We propose an algorithm for finding stable matching in the SMP with dynamic preferences. In the SMP with dynamic preferences, an agent’s preferences might change dynamically, affecting the stability of the previous stable matching. One traditional method for maintaining matching stability is to perform rematching each time the preferences change, as illustrated in Figure 2. However, in some situations, preference changes do not always affect the matching stability, such as with minor changes in preference. In other words, the prior matching remains stable in the presence of the new preference. This motivates us to update the matching to find a stable matching with dynamic preferences. In certain circumstances, such as when the preferences changes are minor, the match-updating method can accelerate the discovery of a stable match for the new instance. In this study, we are not focused on the computational cost while performing the rematching process. With the match-updating mechanism, we try to minimize the revision cost that needs to be paid.
Our current study is a preliminary step toward resolving issues in the SMP with dynamic preferences. In the SMP with the dynamic preferences, changing an agent’s preferences will generate new instances, which may affect the stability of the matching obtained. Refs. [,] investigated the new concept of stability for stable matching problems with dynamic preferences. They tried to broaden the definition of stability in stable matching problems with dynamic preferences. The concept of new stability in stable matching problems with dynamic preferences was determined by measuring the strength of each founded matching against all available instances. To measure a matching’s stability and strength, they needed to find a stable matching for each instance. Our current study will positively impact this problem by empowering the discovery of stable matching for each available stable matching instance. Our findings will aid future research in stable matching, especially with the dynamic preference model. The process of determining stable matching in an SMP with dynamic preferences can be accelerated by employing our theorem and proposed algorithm.
In our previous studies [,], we tried to find a matching between containers and servers. A matching process was carried out by using the Gale–Shapley algorithm between three containers and three servers []. The rematching process was performed in the traditional way by processing the new preferences using the Gale–Shapley algorithm. In our previous study, we also tried to find the matching between containers and servers under probabilistic preferences []. We focused on managing the rematching process between containers and servers when dealing with dynamic preferences. When an agent’s preferences changed, the container scheduler performed the rematching process. With our current research, we can speed up rematching by updating the previous matching. Our match-updating method can accelerate the search for a stable matching for the new instance if the preference changes are minor. However, this update method still has limitations and weaknesses. For some situations, such as if all agents’ preferences are changed and no one confirms the minor preference changes, the match-updating process cannot be accelerated. Moreover, if all agents want to change their current partners, the computational cost of finding a stable matching in a new instance will be higher than with the traditional way of finding a stable matching due to the extra cost of the preference change checking process.
5. Conclusions
In the SMP with dynamic preferences, agents can modify their preferences at any time, leading to the creation of a new SMP instance. As the consequence of the preference changes, the matching obtained may become unstable. We proposed a mechanism for finding a stable matching by updating an existing matching. A cyclic process (infinite loop) may exist when updating a matching. We employed the RV mechanism to prevent this cyclic process when updating a matching. We attempted to update a matching by isolating the pairs that contribute to its instability, thus generating a smaller matching with a stable condition (reduced stable matching). Our proposed mechanism can update a matching without worrying about the cyclic process. As a result, our match-updating method can accelerate the process of finding a stable matching for a new instance when the preference changes are minor. That said, the main contributions of this paper are Theorems 1 and 2, which can shorten the search for stable matching with dynamic preferences. Thus, we can minimize the revision cost when performing the rematching.
For the SMP with dynamic preferences, our current work is a preliminary step toward resolving the bigger issues of the SMP with dynamic preferences. This paper aims to find a stable matching for each generated instance of the SMP with dynamic preferences. However, defining the new stability concept for the SMP with dynamic preferences would be the interesting part of the SMP with dynamic preferences.
Author Contributions
Conceptualization, A.A. and Y.I.; methodology, A.A. and Y.I.; validation, A.A. and Y.I.; investigation, A.A. and Y.I.; writing—original draft preparation, A.A.; writing—review and editing, A.A.; visualization, A.A.; supervision, Y.I. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
The authors would like to thank the anonymous reviewers for their valuable suggestions and comments. Supported by Toyohashi University of Technology and Ministry of Education, Culture, Sports, Science and Technology Japan. Supported by Toyohashi University of Technology and the Global Rotation Program, MEXT, Japan.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A
| Algorithm A1 Procedure of the path to stability. |
| Input: -SMP Instance (manPrefers and womanPrefers)
|
References
- Gale, D.; Shapley, L.S. College admissions and the stability of marriage. Am. Math. Mon. 1962, 69, 9–15. [Google Scholar] [CrossRef]
- Irving, R.W. An efficient algorithm for the “stable roommates” problem. J. Algorithms 1985, 6, 577–595. [Google Scholar] [CrossRef]
- Gusfield, D.; Irving, R.W. The Stable Marriage Problem: Structure and Algorithms; MIT Press: Cambridge, MA, USA, 1989. [Google Scholar]
- Manlove, D.F. Hospitals/residents problem. In Encyclopedia of Algorithms; Springer: New York, NY, USA, 2008. [Google Scholar]
- Iwama, K.; Miyazaki, S. A survey of the stable marriage problem and its variants. In Proceedings of the International Conference on Informatics Education and Research for Knowledge-Circulating Society (ICKS 2008), Kyoto, Japan, 17 January 2008; pp. 131–136. [Google Scholar]
- Irving, R.W.; Manlove, D.F.; Scott, S. The hospitals/residents problem with ties. In Scandinavian Workshop on Algorithm Theory; Springer: Berlin/Heidelberg, Germany, 2000; pp. 259–271. [Google Scholar]
- Dilley, J.; Maggs, B.; Parikh, J.; Prokop, H.; Sitaraman, R.; Weihl, B. Globally distributed content delivery. IEEE Internet Comput. 2002, 6, 50–58. [Google Scholar] [CrossRef] [Green Version]
- Alimudin, A.; Ishida, Y. Dynamic assignment based on a probabilistic matching: Application to server-container assignment. Procedia Comput. Sci. 2020, 176, 3863–3872. [Google Scholar] [CrossRef]
- Alimudin, A.; Ishida, Y. Service-Based Container Deployment on Kubernetes Using Stable Marriage Problem. In Proceedings of the 2020 the 6th International Conference on Frontiers of Educational Technologies, Tokyo, Japan, 5–8 June 2020; pp. 164–167. [Google Scholar]
- Kanade, V.; Leonardos, N.; Magniez, F. Stable matching with evolving preferences. arXiv 2015, arXiv:1509.01988. [Google Scholar]
- Chen, J.; Skowron, P.; Sorge, M. Matchings under preferences: Strength of stability and tradeoffs. ACM Trans. Econ. Comput. 2021, 9, 1–55. [Google Scholar] [CrossRef]
- Knuth, D.E. Stable Marriage and Its Relation to Other Combinatorial Problems: An Introduction to the Mathematical Analysis of Algorithms; American Mathematical Society: Providence, RI, USA, 1997; Volume 10. [Google Scholar]
- Roth, A.E.; Vate, J.H.V. Random paths to stability in two-sided matching. Econom. J. Econom. Soc. 1990, 58, 1475–1480. [Google Scholar] [CrossRef]
- Ma, J. On randomized matching mechanisms. Econ. Theory 1996, 8, 377–381. [Google Scholar] [CrossRef]
- Chen, J.; Niedermeier, R.; Skowron, P. Stable marriage with multi-modal preferences. In Proceedings of the 2018 ACM Conference on Economics and Computation, Ithaca, NY, USA, 18–22 June 2018; pp. 269–286. [Google Scholar]
- Aziz, H.; Biró, P.; Gaspers, S.; De Haan, R.; Mattei, N.; Rastegari, B. Stable matching with uncertain linear preferences. In International Symposium on Algorithmic Game Theory; Springer: Berlin/Heidelberg, Germany, 2016; pp. 195–206. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).