1. Homepage
  2. Programming
  3. Algorithm Assignment 2: Different Approaches to the Multicolored Clique Problem

Algorithm Assignment 2: Different Approaches to the Multicolored Clique Problem

Engage in a Conversation
AlgorithmMulticolored Clique ProblemBranch-and-BoundHill Climbing AlgorithmSimulated Annealing algorithm

CourseNana.COM

Guide #2
Different Approaches to the Multicolored Clique Problem
CourseNana.COM

The Multicolored Clique Problem (MCP) is defined as follows: Given an undirected graph where each vertex is assigned one of k colors, find a maximum clique (complete subgraph) where all vertices have different colors. CourseNana.COM

Exercise A (40 points) Solve the (MCP) using a Branch-and-Bound Algorithm. Adapt the algorithm presented in class for the Maximum Clique Problem (MaxClique) to this problem. You will have to take the following points into consideration. CourseNana.COM

  • Change the Choice function, to take into account the fact that you want all members of the clique to have different colors. CourseNana.COM

  • Change the size-bound bounding function presented in class for the MaxClique to adapt it to the MCP. CourseNana.COM

  • Change the backtracking with bounds algorithm presented in class, so that it is in accordance with the CourseNana.COM

    algorithm for branch-and-bound we studied. CourseNana.COM

  • Test your algorithm with different random graphs with density 0.5. You can use the random graph generator provided by the book, but you will have to complete each graph, by randomly assigning k colors to the nodes. CourseNana.COM

  • Empirically determine the largest value nmax, for n the number of nodes, for which your algorithm can solve the problem in less than a minute, when the number of allowed colors in k = n/2. CourseNana.COM

  • Find 10 different graphs with nmax nodes, for which your branch-and-bound algorithm needs approxi- mately 1 minute to solve the MCP. Save the 10 graphs and respective solutions for exercise B and C. CourseNana.COM

    Exercise B (30 points) Solve the MCP using a Hill Climbing Algorithm. You will have to take the following points into consideration. CourseNana.COM

    • Clearly define you neighborhood function N and your local search function hN . CourseNana.COM

    • Include a randomized initialization. CourseNana.COM

    • Do not use a cmax value to stop the algorithm, let the algorithm converge to the optimal solution. Run re-tries for half a minute, using the 10 graphs found in exercise A. Report, in average, how close does the algorithm get to the optimal solution found in A. Report min, max, avg and the number of times the optimal solution was obtained, as shown in class. CourseNana.COM

      Exercise C (30 points) Solve the MCP using a Simulated Annealing algorithm. You will have to take the following points into consideration. CourseNana.COM

      • Clearly define your neighborhood function N and your local search function hN . Make sure that they now allow down-hill moves. CourseNana.COM

      • Include a randomized initialization. CourseNana.COM

      • Empirically determine suitable values to define a cooling schedule. I.e., test different values for T0 and α CourseNana.COM

        to allow for sufficient exploration, but trying to keep running times low. CourseNana.COM

      • Do not use a cmax value to stop the algorithm, let the algorithm converge to the optimal solution. Run re-tries for half a minute, using the 10 graphs found in exercise A. Report, in average, how close does the algorithm get to the optimal solution found in A. Report min, max, avg and the number of times the optimal solution was obtained, as shown in class. CourseNana.COM

        CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Algorithm代写,Multicolored Clique Problem代写,Branch-and-Bound代写,Hill Climbing Algorithm代写,Simulated Annealing algorithm代写,Algorithm代编,Multicolored Clique Problem代编,Branch-and-Bound代编,Hill Climbing Algorithm代编,Simulated Annealing algorithm代编,Algorithm代考,Multicolored Clique Problem代考,Branch-and-Bound代考,Hill Climbing Algorithm代考,Simulated Annealing algorithm代考,Algorithmhelp,Multicolored Clique Problemhelp,Branch-and-Boundhelp,Hill Climbing Algorithmhelp,Simulated Annealing algorithmhelp,Algorithm作业代写,Multicolored Clique Problem作业代写,Branch-and-Bound作业代写,Hill Climbing Algorithm作业代写,Simulated Annealing algorithm作业代写,Algorithm编程代写,Multicolored Clique Problem编程代写,Branch-and-Bound编程代写,Hill Climbing Algorithm编程代写,Simulated Annealing algorithm编程代写,Algorithmprogramming help,Multicolored Clique Problemprogramming help,Branch-and-Boundprogramming help,Hill Climbing Algorithmprogramming help,Simulated Annealing algorithmprogramming help,Algorithmassignment help,Multicolored Clique Problemassignment help,Branch-and-Boundassignment help,Hill Climbing Algorithmassignment help,Simulated Annealing algorithmassignment help,Algorithmsolution,Multicolored Clique Problemsolution,Branch-and-Boundsolution,Hill Climbing Algorithmsolution,Simulated Annealing algorithmsolution,