Next Article in Journal
Hopf Bifurcation and Control of a Fractional-Order Delay Stage Structure Prey-Predator Model with Two Fear Effects and Prey Refuge
Previous Article in Journal
Building Trusted Federated Learning on Blockchain
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Numerical Approach for Analysing the Moving Sofa Problem

Faculty of Mechanical Engineering and Aeronautics, Rzeszow University of Technology, Al. Powstańców Warszawy 8, 35-959 Rzeszow, Poland
Symmetry 2022, 14(7), 1409; https://doi.org/10.3390/sym14071409
Submission received: 17 June 2022 / Revised: 1 July 2022 / Accepted: 6 July 2022 / Published: 8 July 2022
(This article belongs to the Special Issue Geometry of Systems with Symmetry)

Abstract

:
This paper presents a method for obtaining the shape and area of a sofa. The proposed approach is based on a discrete solution to the equation, which states the necessary conditions for the existence of envelopes. Based on provided examples, it was proved that the method can be used for deriving the solutions of the posed problem. The method offers an area calculation accuracy of 1.5 × 10 8 .

1. Introduction

The moving sofa problem was formulated for the first time by Moser [1] as: "What is the largest area region which can be moved through a hallway of width one?". This is one of the unsolved mathematical problems [2]. The essence is to find such a shape of the maximum area that can be moved around a ninety-degree corner while a planar case is under consideration. The simplicity of the formulation of the problem, which allows anyone to understand it, and advanced calculation techniques used for analyses have retained the scientific interest of researchers until today.
One of the first proposed solutions was a sofa built from circular arcs and straight lines, the area of which was A H = π / 2 + 2 / π = 2.2074 [3]. However, this solution was not optimal, as proved by Gerver [4], who proposed a sofa with the area A G = 2.2195316688 constructed from 18 analytically defined curves. This solution was probably the optimum one, though it has not yet been proven globally. Over the years, various attempts at designing other solutions have been made. The author in [5] presented a shape similar to the shape of Gerver’s sofa obtained by the Monte Carlo method. Numerical analyses were also performed for an ambidextrous sofa [6]. Gerver’s sofa was modelled with the aid of Boolean operations performed for each discrete position of the hallway [7]. An improved upper bound for the optimal solution, which should now be within the interval A G A o p t 2.37 , has recently been obtained [8]. Attempts were also made to describe this problem by means of variational analysis [9].
The solution to the problem also found practical applications, i.e., while choosing the shape of a trolley moving around the corner [10] or in mobile robot path planning—the so-called “piano movers” problem [11,12,13].
The aim of this paper was to lay the foundation for further investigating the moving sofa problem. In particular, we sought to obtain such a mathematical model of sofa generation which could be used for searching the novel solutions of the problem or to prove that the Gerver’s solution truly is an optimal one. For this purpose, the method for obtaining the shape of the moving sofa is proposed. The method is based on discrete solutions to the equations, stating necessary conditions of the existence of envelopes [14,15,16].

2. Sofa Generation

Fixed coordinate system h was established, in which the region of hallway H = { ( x h , y h ) R 2 : y h | x h | + 2 y h | x h | } is bounded by two curves parametrised as r ¯ u ( h ) = [ x u h ( t u ) , y u h ( t u ) ] T and r ¯ l ( h ) = [ x l h ( t l ) , y l h ( t l ) ] T (Figure 1).
Position vectors of the upper and lower boundaries of the hallway are expressed by Equations (1) and (2):
r ¯ u ( h ) ( t u ) = x u h y u h = t u | t u | + 2 ,
r ¯ l ( h ) ( t l ) = x l h y l h = t l | t l | ,
where t u i t l are the hallway’s parameters. Moreover, coordinate system s connected with the sofa moves along the trajectory defined by a parametric curve in the form of r ¯ t ( h ) = [ x t h ( t t ) y t h ( t t ) ] T and rotates by φ ( t t ) , where t t is the parameter of the path of movement. In order to express the hallway’s boundaries in the coordinate system connected with the sofa, we may use Equation (3)
r ¯ u , l ( s ) = cos φ sin φ sin φ cos φ · x u , l ( h ) y u , l ( h ) + x t ( h ) y t ( h ) ,
where indexes u and l refer to the upper and lower boundaries of the hallway, respectively. Equation (3) describes one parameter family of curves with parameter t t . After transformation, we obtain (4) and (5):
r ¯ u ( s ) = x u ( s ) y u ( s ) = cos φ x t ( h ) + x u ( h ) + sin φ y t ( h ) y u ( h ) sin φ x t ( h ) + x u ( h ) cos φ y t ( h ) y u ( h ) ,
r ¯ l ( s ) = x l ( s ) y l ( s ) = cos φ x t ( h ) + x l ( h ) + sin φ y t ( h ) y l ( h ) sin φ x t ( h ) + x l ( h ) cos φ y t ( h ) y l ( h ) .
The necessary condition for the existence of envelopes expressed as the perpendicularity of the vector normal and a derivative of the vector of a family of curves with respect to its parameter [14] takes the form of:
f u t u , t t = x u s t t · y u s t u x u s t u · y u s t t = 0 ,
f l t l , t t = x l s t t · y l s t l x l s t l · y l s t t = 0 .
By calculating the partial derivatives of expressions (4) and (5) and putting them into (6) and (7), we arrive at the envelope Equations (8) and (9):
f u ( t u , t t ) = x t ( h ) t t ± y t ( h ) t t 2 φ t t 2 φ t t t u φ t t x t ( h ) ± φ t t y t ( h ) = 0 ,
f l ( t l , t t ) = x t ( h ) t t ± y t ( h ) t t 2 φ t t t l φ t t x t ( h ) ± φ t t y t ( h ) = 0 ,
wherein the upper sign stands for the right-hand side and the lower sign stands for the left-hand side. The solutions to Equations (8) and (9), with the assumption that φ / t t 0 , are parameters (10) and (11):
t u = ± 1 2 φ t t x t ( h ) t t ± y t ( h ) t t 2 φ t t φ t t x t ( h ) + φ t t y t ( h ) ,
t l = ± 1 2 φ t t x t ( h ) t t ± y t ( h ) t t φ t t x t ( h ) + φ t t y t ( h ) .
Taking into account the above results in Equations (4) and (5), we obtain the envelopes of the consecutive positions of the hallway boundaries in the sofa’s coordinate system (12) and (13):
r ¯ s u ( s ) ( t t ) = r ¯ u ( s ) ( t u ( t t ) , t t ) ,
r ¯ s l ( s ) ( t t ) = r ¯ l ( s ) ( t l ( t t ) , t t ) .
The above equations stand while the derivatives r ¯ u ( h ) / t u and r ¯ l ( h ) / t l exist. Otherwise, as for point t u = 0 , the envelope can be represented by the curve defined as (14) (Appendix A, Theorem A1)
r ¯ s c u ( s ) ( t t ) = r ¯ u ( s ) ( t u = 0 , t t ) .
Assuming that the sofa’s path of movement and angle of rotation are given in a discrete way as a set of points x t i ( h ) , y t i ( h ) and φ i , where i = 1 , 2 , , n , and taking finite differences quotients instead of derivatives, solutions to envelope Equations (10) and (11) can be expressed as (15) and (16):
t u i = ± 1 2 Δ φ i Δ x t i ( h ) ± Δ y t i ( h ) 2 Δ φ i Δ φ i x t i ( h ) + Δ φ i y t i ( h ) ,
t l i = ± 1 2 Δ φ i Δ x t i ( h ) ± Δ y t i ( h ) Δ φ i x t i ( h ) + Δ φ i y t i ( h ) .
Taking the above equations into (1) and (2), and subsequently into (4) and (5), the discrete representation of curves which bound the region of sofa (17) and (18) can be established:
r ¯ s u i ( s ) = x s u i ( s ) y s u i ( s ) = cos φ i x t i ( h ) + t u i + sin φ i y t i ( h ) ( ± t u i + 2 ) sin φ i x t i ( h ) + t u i cos φ i y t i ( h ) ( ± t u i + 2 ) ,
r ¯ s l i ( s ) = x s l i ( s ) y s l i ( s ) = cos φ i x t i ( h ) + t l i + sin φ y t i ( h ) t l i sin φ i x t i ( h ) + t l i cos φ y t i ( h ) t l i .
Moreover, Equation (14) takes the discrete form (19)
r ¯ s c u i ( s ) = x s c u i ( s ) y s c u i ( s ) = x t i ( h ) cos φ i + sin φ i y t i ( h ) 2 x t i ( h ) sin φ i cos φ i y t i ( h ) 2 .
Finally, it can be said that the region of sofa is S = { ( x s , y s ) R 2 : y s y s u i ( s ) y s y s l i ( s ) y s y s c u i ( s ) } , where it should be within the region limited by the initial and the final position of the hallway S B = { ( x s , y s ) R 2 : y s y u 1 ( s ) y s y u n ( s ) y s y l 1 ( s ) y s y l n ( s ) x s x l 1 ( s ) x s x l n ( s ) } , where:
y u 1 ( s ) = sin φ 1 x t 1 ( h ) + t u cos φ 1 y t 1 ( h ) ( | t u | + 2 ) , y u n ( s ) = sin φ n x t n ( h ) + t u cos φ n y t n ( h ) ( | t u | + 2 ) , x l 1 ( s ) = cos φ 1 x t 1 ( h ) + t l + sin φ 1 y t 1 ( h ) | t l | , y l 1 ( s ) = sin φ 1 x t 1 ( h ) + t l cos φ 1 y t 1 ( h ) | t l | , x l n ( s ) = cos φ n x t n ( h ) + t l + sin φ n y t n ( h ) | t l | , y l n ( s ) = sin φ n x t n ( h ) + t l cos φ n y t n ( h ) | t l | .
The shape of the sofa is obtained based on discrete curves bounding its region by means of standard curve intersection detection algorithms. The area of the sofa can be calculated as the area of a polygon with multiple numbers of sides; if the symmetrical case is considered (Appendix A, Theorem A2) in order to accelerate the calculations, they can be run for half of the sofa only.

3. Application of the Proposed Method

3.1. Gerver’s Solution

Generating the shape of the sofa proposed by Gerver [4] starts by defining the path of movement and angle of rotation. This was accomplished by the discretisation of Equation (25) from study [17]. Therefore, values x i , y i , φ i where i = 1 , 2 , , n were obtained. Subsequently, the path of the movement was transformed into the coordinate system used in the present study with the aid of Equation (21).
x t i ( h ) y t i ( h ) = cos ( 3 4 π ) sin ( 3 4 π ) sin ( 3 4 π ) cos ( 3 4 π ) · cos φ i sin φ i sin φ i cos φ i x n / 2 0 x i y i + 0 2 .
The results are presented in Figure 2a,b.
The path of movement is symmetrical with respect to axis y h , while the angle of rotation is an odd function. Based on the above, according to Section 2, the envelopes of hallway (Figure 2c) were established for half of the sofa. Taking into account conditions (20), the shape of one half of the sofa was obtained (Figure 2d). The calculation time for n = 6000 was 2.65 s, and the resulting area of the sofa A = 2.2195316631 differs by only 5.7 × 10 9 from the area obtained by Gerver: A G = 2.2195316688 [4].

3.2. Romik’s Solution

In order to arrive at the shape of sofa as proposed by Romik, its path of movement and angle of rotation were discretised based on Equation (47) from [17]. As in Section 3.1, they were transformed with the aid of Equation (21). The resulting path of the movement and rotation angle are shown on Figure 3a,b.
Since Romik’s solution is also symmetrical, calculations were limited to one half of the sofa. The envelopes of the hallway are shown in Figure 3c). Figure 3d presents the shape generated in this manner. To derive the ambidextrous sofa, an intersection with its reflection on either side of axis y s = 1 / 2 was performed (Figure 4).
The area of the ambidextrous sofa generated with the aid of the proposed method is A = 1.644955233409673 (for n = 6000 ) and differs by 1.5 × 10 8 from Romik’s analytical solution A R = 1.644955218425440 [17].

3.3. Asymmetrical Sofa

In order to demonstrate whether the proposed method is capable of generating a sofa of an asymmetric shape, the path of movement was defined by cubic spline interpolation over three points: A = ( x A , y A ) = ( 0.4230 , 0.4230 + 2 ) , B = ( x B , y B ) = ( 0.1940 , 2.2642 ) , C = ( x C , y C ) = ( 0.7 , 0.7 + 2 ) , while the angle of the rotation was a linear function in the form of φ = π / 2 x C x A x t ( h ) π / 4 π / 2 x C x A x A , as shown in Figure 5a,b. The envelopes of the hallway and the shape of the sofa are presented in Figure 5c,d. The area of the sofa amounts to A = 2.16023196188 and is smaller than in Gerver’s solution.

4. Conclusions

Based on the provided examples, it was concluded that the proposed method may be successfully used for generating sofas. The calculation accuracy defined as the difference between the analytically and numerically obtained areas is presented in Figure 6.
It can be observed that the calculation error is small, therefore the method is considered as correct.
Moreover, the method could be used for designing a mathematical model in which functions of the path of movement and the angle of rotation are obtained in order to maximise the sofa’s area. Another potential application of the designed method is to prove that a truly optimal solution must be symmetrical. For that purpose, one can formulate a functional describing the area of the sofa and construct a proof that the extremum is only reached when the path of movement is symmetric and there is an odd parity of the angle of rotation (in other words, the sofa is symmetric, as can be seen in Theorem A2). One can try to achieve this by undermining, on the basis of the above assumptions, the system of Euler equations, which is a necessary condition for the existence of an extremum.
Nevertheless, the sofa with the maximum area is that proposed by Gerver; not only is it highly likely to be the optimal solution to the posed problem, but it is also possible to design a neat piece of furniture offering space for rather a large coffee table (Figure 7).

Funding

This work was supported by the Rzeszów University of Technology.

Institutional Review Board Statement

Not applicable.

Conflicts of Interest

The author declares no conflict of interest.

Appendix A. Auxiliary Theorems

Theorem A1.
The envelope of the family of curves described by Equation (4) is a piecewise curve in the form r ¯ s u ( s ) ( t t ) = r ¯ u ( s ) ( t u ( t t ) , t t ) , for t u 0 r ¯ u ( s ) ( t u = 0 , t t ) , for t u = 0 , where t u ( t t ) is the solution to envelope Equation (6).
Proof. 
While the case for t u 0 is obvious, since it directly results from the necessary condition of envelope existence (6), it is problematic to determine the envelope when the derivative does not exist as in the case of point t u = 0 . It is assumed that the corner of curve (1) is rounded by a tangent circle with radius r, parametrised as follows r ¯ u ( h ) = [ t u r 2 t u 2 + 2 + r 2 ] T . The above parametric form can be brought to an implicit one ( y u 2 r 2 ) 2 + x u 2 r 2 = 0 , wherein when r 0 , it defines point x u = 0 , y u = 2 . The family of curves can be obtained using the parametric representation of a circle in Equation (4). After differentiation, the necessary condition for the existence of the envelope (6) takes the form of (A1)
y t ( h ) t t φ t t x t ( h ) + t u x t ( h ) t t + φ t t y t ( h ) r 2 t u 2 2 φ t t t u r 2 t u 2 2 φ t t r t u r 2 t u 2 = 0 .
Assuming that A = y t ( h ) t t φ t t x t ( h ) and B = t u x t ( h ) t t + y t ( h ) φ t t 2 φ t t 2 φ t t r the solution to Equation (A1) is t u = ± A r A 2 + B 2 . For an infinitesimal circle radius r, the above solution approaches zero, which can be expressed as lim r 0 t u = 0 . It follows that, for t u = 0 , the envelope of the family of curves (4) can indeed be represented by equation r ¯ s u ( s ) ( t t ) = r ¯ u ( s ) ( t u = 0 , t t ) , which completes the proof. □
Theorem A2.
If the sofa’s path of movement is symmetrical along the y h axis and the rotation angle φ is an odd function of parameter t t , the sofa is symmetrical along y s axis.
Proof. 
Assumptions regarding the symmetry of the path of movement and odd parity of the angle of rotation can be written out as x t ( h ) ( t t ) = x t ( h ) ( t t ) y t ( h ) ( t t ) = y t ( h ) ( t t ) φ ( t t ) = φ ( t t ) . After differentiation with respect to the t t parameter, the following relations between derivatives can be obtained x t ( h ) ( t t ) = x t ( h ) ( t t ) y t ( h ) ( t t ) = y t ( h ) ( t t ) φ ( t t ) = φ ( t t ) . Taking the above equalities into (10) and (11), and then into (12) and (13), the equalities x s u L ( s ) ( t t ) = x s u R ( s ) ( t t ) y s u L ( s ) ( t t ) = y s u R ( s ) ( t t ) x s l L ( s ) ( t t ) = x s l R ( s ) ( t t ) y s l L ( s ) ( t t ) = y s l R ( s ) ( t t ) can be obtained, where index R and L refers to the right- (upper sign) and left-hand side (lower sign) of sofa, respectively. Furthermore, the use of conditions supplied at the beginning of the proof in (14) leads to equality x s c u ( s ) ( t t ) = x s c u ( s ) ( t t ) y s c u ( s ) ( t t ) = y s c u ( s ) ( t t ) , which proves the thesis on the symmetry of the sofa. □

References

  1. Moser, L. Moving furniture through a hallway. SIAM Rev. 1966, 8, 381. [Google Scholar] [CrossRef]
  2. Croft, H.T.; Falconer, K.; Guy, R.K. Unsolved Problems in Geometry: Unsolved Problems in Intuitive Mathematics; Springer Science & Business Media: Berlin, Germany, 2012; Volume 2. [Google Scholar]
  3. Hammersley, J.M. On the enfeeblement of mathematical skills by modern mathematics and by similar soft intellectual trash in schools and universities. Educ. Stud. Math. 1968, 1, 17. [Google Scholar] [CrossRef] [Green Version]
  4. Gerver, J.L. On Moving a Sofa Around a Corner. Geom. Dedicata 1992, 42, 267–283. [Google Scholar] [CrossRef]
  5. Wagner, N.R. The sofa problem. Am. Math. Mon. 1976, 83, 188–189. [Google Scholar] [CrossRef]
  6. Maruyama, K. An approximation method for solving the sofa problem. Int. J. Comput. Inf. Sci. 1973, 2, 29–48. [Google Scholar] [CrossRef] [Green Version]
  7. Gibbs, P. A Computational Study of Sofas and Cars. Comput. Sci. 2014, 2, 1–5. [Google Scholar]
  8. Kallus, Y.; Romik, D. Improved upper bounds in the moving sofa problem. Adv. Math. 2018, 340, 960–982. [Google Scholar] [CrossRef] [Green Version]
  9. Song, N. A Variational Approach to the Moving Sofa Problem; Senior Project; Bard College: Annandale-On-Hudson, NY, USA, 2016. [Google Scholar]
  10. Gerd, E.; Henrik, E.; Kimmo, E. Moving a food trolley around a corner. Theor. Comput. Sci. 1998, 191, 193–203. [Google Scholar] [CrossRef] [Green Version]
  11. Wilson, D.; Davenport, J.H.; England, M.; Bradford, R. A “piano movers” problem reformulated. In Proceedings of the 2013 15th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing, Timisoara, Romania, 23–26 September 2013; pp. 53–60. [Google Scholar]
  12. Schwartz, J.T.; Sharir, M. On the “piano movers” problem I. The case of a two-dimensional rigid polygonal body moving amidst polygonal barriers. Commun. Pure Appl. Math. 1983, 36, 345–398. [Google Scholar] [CrossRef]
  13. Maddila, S.; Yap, C.K. Moving a polygon around the corner in a corridor. In Proceedings of the Second Annual Symposium on Computational Geometry, Yorktown Heights, NY, USA, 2–4 June 1986; pp. 187–192. [Google Scholar]
  14. Litvin, F.L.; Fuentes, A. Gear Geometry and Applied Theory; Cambridge University Press: Cambridge, UK, 2004. [Google Scholar] [CrossRef]
  15. Batsch, M. A novel method of obtaining honing tool profile for machining gears with profile modifications. J. Manuf. Sci. Eng. 2020, 142, 091004. [Google Scholar] [CrossRef]
  16. Polowniak, P.; Sobolak, M.; Marciniec, A. Mathematical model of the worm wheel tooth flank of a double-enveloping worm gear. Alex. Eng. J. 2021, 60, 3037–3046. [Google Scholar] [CrossRef]
  17. Romik, D. Differential Equations and Exact Solutions in the Moving Sofa Problem. Exp. Math. 2018, 27, 316–330. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Coordinate systems.
Figure 1. Coordinate systems.
Symmetry 14 01409 g001
Figure 2. Gerver’s sofa: (a) path of movement; (b) angle of rotation; (c) envelopes of hallway; and (d) shape of sofa.
Figure 2. Gerver’s sofa: (a) path of movement; (b) angle of rotation; (c) envelopes of hallway; and (d) shape of sofa.
Symmetry 14 01409 g002
Figure 3. Romik’s sofa: (a) path of movement; (b) angle of rotation; (c) envelopes of hallway; and (d) shape of sofa.
Figure 3. Romik’s sofa: (a) path of movement; (b) angle of rotation; (c) envelopes of hallway; and (d) shape of sofa.
Symmetry 14 01409 g003
Figure 4. Ambidextrous Romik’s sofa.
Figure 4. Ambidextrous Romik’s sofa.
Symmetry 14 01409 g004
Figure 5. Asymmetrical sofa: (a) path of movement; (b) angle of rotation; (c) envelopes of hallway; and (d) shape of sofa.
Figure 5. Asymmetrical sofa: (a) path of movement; (b) angle of rotation; (c) envelopes of hallway; and (d) shape of sofa.
Symmetry 14 01409 g005
Figure 6. Numerical error of area calculation.
Figure 6. Numerical error of area calculation.
Symmetry 14 01409 g006
Figure 7. A visualisation of the optimal design of the sofa.
Figure 7. A visualisation of the optimal design of the sofa.
Symmetry 14 01409 g007
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Batsch, M. A Numerical Approach for Analysing the Moving Sofa Problem. Symmetry 2022, 14, 1409. https://doi.org/10.3390/sym14071409

AMA Style

Batsch M. A Numerical Approach for Analysing the Moving Sofa Problem. Symmetry. 2022; 14(7):1409. https://doi.org/10.3390/sym14071409

Chicago/Turabian Style

Batsch, Michał. 2022. "A Numerical Approach for Analysing the Moving Sofa Problem" Symmetry 14, no. 7: 1409. https://doi.org/10.3390/sym14071409

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop