Optimal Seating Arrangement Algorithm for Friendship Graphs

In summary, an algorithm to find the optimal seating arrangement for a given directed friendship graph is required. The algorithm takes into account the weightings of the four types of edges in the graph, as well as calculation time. If you have any thoughts on how to optimize the algorithm, please let me know.
  • #1
happinessuni
2
0
Hi all,

I am struggling the question, please see attachments.

Thanks a lot

View attachment 6522View attachment 6523

Devise an algorithm which, given a (directed) friendship graph (in the xkcd format), finds the optimal seating arrangement. Your algorithm should include the following:
 a description of the required input format
 appropriate weightings of the four types of edges in the given friendship graph
 an output (an optimal seating arrangement)
 sufficient explanation of the variables and data structures involved that the marker can tell what they are for.
 

Attachments

  • 2017-04-09 (1).png
    2017-04-09 (1).png
    11.9 KB · Views: 63
  • 2017-04-09 (2).png
    2017-04-09 (2).png
    58.3 KB · Views: 70
Physics news on Phys.org
  • #2
Hi happinessuni! Welcome to MHB! (Smile)

Hmm... suppose we have n visitors and m seats.
Then the input could for instance be a nxn matrix with numbers indicating the strength of the relationship.
And combined with a mxm matrix indicating which seats are next to each other.
The output could be m numbers indicating which visitor sits on each seat.
Then the algorithm could try all ways that the visitors could be seated, evaluating how 'well' the seating is, and selecting the one with the most value.
If calculation time is an issue, there are several ways to optimize it... (Thinking)

Any thoughts?
 
  • #3
I like Serena said:
Hi happinessuni! Welcome to MHB! (Smile)

Hmm... suppose we have n visitors and m seats.
Then the input could for instance be a nxn matrix with numbers indicating the strength of the relationship.
And combined with a mxm matrix indicating which seats are next to each other.
The output could be m numbers indicating which visitor sits on each seat.
Then the algorithm could try all ways that the visitors could be seated, evaluating how 'well' the seating is, and selecting the one with the most value.
If calculation time is an issue, there are several ways to optimize it... (Thinking)

Any thoughts?

Hi, Thanks for reply, I still didn't get the algorithm, could you please show me how to find it?
 

Related to Optimal Seating Arrangement Algorithm for Friendship Graphs

1. What is graph theory?

Graph theory is a branch of mathematics that studies the properties and relationships of graphs, which are mathematical structures used to model relationships between objects.

2. What is a permutation in graph theory?

In graph theory, a permutation is a way of arranging the elements of a graph in a specific order. It is often used to study the symmetry and structure of graphs.

3. How is permutation related to graph theory?

Permutation is an important concept in graph theory as it allows for the analysis and classification of graphs based on their symmetries and structure. Permutation groups are often used to study the automorphisms (symmetries) of graphs.

4. What are the applications of permutation in graph theory?

Permutation has many applications in graph theory, including in the study of network routing, graph coloring, and graph isomorphism. It is also used in computer science for tasks such as code optimization and cryptography.

5. Can permutation be used to solve real-world problems?

Yes, permutation can be used to solve a variety of real-world problems, such as scheduling tasks, optimizing transportation routes, and analyzing social networks. It is a powerful tool for understanding and solving problems that involve relationships and patterns between objects.

Similar threads

  • Classical Physics
Replies
1
Views
2K
  • STEM Academic Advising
Replies
13
Views
2K
  • Special and General Relativity
Replies
8
Views
2K
  • Special and General Relativity
Replies
1
Views
2K
Replies
2
Views
2K
Replies
13
Views
9K
Replies
24
Views
7K
  • Beyond the Standard Models
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
Back
Top