This document describes an algorithm for generating all non-equivalent colorings of a graph with certain symmetries. The algorithm uses family trees and blocks defined by the graph's automorphisms. It assigns numbers to blocks of vertices with the leading color, then decides the positions of the new color in each block to generate the child colorings recursively. This allows generating all colorings with polynomial delay by avoiding duplicate calculations.
Parallel Algorithm for Graph Coloring Heman Pathak
The graph coloring problem is an assignment of colors to the vertices such that no two adjacent vertices are assigned the same color. A k-coloring of a graph G is a coloring of G using k colors.
Parallel Algorithm for Graph Coloring Heman Pathak
The graph coloring problem is an assignment of colors to the vertices such that no two adjacent vertices are assigned the same color. A k-coloring of a graph G is a coloring of G using k colors.
京都大学大学院情報学研究科 数理工学専攻
離散数理分野(研究室)の案内
離散数学や組合せ最適化の理論と応用を研究している研究室です.
キーワード:離散数学,組合せ最適化,グラフ理論,オペレーションズリサーチ
http://www-or.amp.i.kyoto-u.ac.jp
Department of Applied Mathematics and Physics,
Graduate School of Informatics, Kyoto University,
Japan
Unix and Shell Programming,
Q P Code: 60305.
Additional Mathematics I
Q P Code: 60306
Computer Organization and Architecture
Q P Code: 62303
Data Structures Using C
Q P Code: 60303
Discrete Mathematical Structures
Q P Code: 60304
Engineering Mathematics - III
Q P Code: 60301
Soft Skill Development
Q P Code: 60307
Unix and Shell Programming,
Q P Code: 60305.
Additional Mathematics I
Q P Code: 60306
Computer Organization and Architecture
Q P Code: 62303
Data Structures Using C
Q P Code: 60303
Discrete Mathematical Structures
Q P Code: 60304
Engineering Mathematics - III
Q P Code: 60301
Soft Skill Development
Q P Code: 60307
1 Faculty of Computer Studies Information Technology a.docxmercysuttle
1
Faculty of Computer Studies
Information Technology and Computing Program
M105 Tutor-Marked Assignment
Course Code: M105 Semester: Fall 2015-2016
Course Title: Introduction to Programming with Java Credit Hours: 3 Hours
Cut-Off Date: Sunday, December 13, 2015 Total Marks: 80
Contents
Preface…………………………………………………………………………………………… 1
Instructions for submitting TMA……………………………………………………………….. 1
Question One…………….……………………………………………………………………… 2
Question Two…………………….……………………………………………………………… 2
Question Three…….…………….……………………………………………………………… 3
Question Four………..…………..……………………………………………………………… 3
This TMA covers chapters 1, 2, 4 and 5 of the text book.
Instructions for submitting TMA
1. Create a new project in NetBeans. Name it: StudentName_StudentID (e.g. AhmadOmar_099999)
2. Create all the required classes in TMA inside this project. Name each class according to the
question No. in addition to your ID (e.g. Q2_StudentID)
3. You will find a solution template (document file) on LMS with the following name:
M105-TMA-2015-2016-Fall-Branch-StudentID-FirstNameLastName
You should write your answers inside this document, but you need to:
a) Sign the “Declaration of No Plagiarism” electronically (it is enough to put your
name and ID).
b) Modify the following information in the file name: Branch, StudentID and
FirstNameLastName
Example:
"Ahmad Omar" is in Kuwait Branch and his ID is 0 99999. He should change the file
name to be: M105-TMA-2015-2016-Fall-KWT-099999- AhmadOmar
4. Copy and paste the code of all the classes + the required snapshots inside the above
document file.
5. Create a compressed file including the folder of your project.
6. Name the compressed file as the document file.
7. Submit two separated files: the compressed file + the document file (without compression).
2
Important Notes:
1) You should solve TMA individually. There are no groups in TMA.
2) When writing your programs, you should follow good programming style that helps
readability. This includes:
• Using short comment at the beginning stating the purpose of each program.
• Selecting meaningful names for identifiers.
• Using spacing and indentations to help make the structure of your program clear.
You could lose up to 3 marks if you did not do that.
Question One: [10 marks]
a. Write a Java class (program) that reads from the user a real number
represents the length of the hypotenuse of an isosceles right triangle.
Then calculates and prints the area of this triangle (rounded to 2
decimal places). [9 marks]
Hint:
You can search the internet to discover how to calculate the area of
an isosceles right triangle when you only know the length of its hypotenuse.
b. Give the exact output of your program. Provide a snapshot representing the exact output of
any value from your choice. [1 mark]
Question Two: [24 marks]
a. For any quadratic equatio ...
京都大学大学院情報学研究科 数理工学専攻
離散数理分野(研究室)の案内
離散数学や組合せ最適化の理論と応用を研究している研究室です.
キーワード:離散数学,組合せ最適化,グラフ理論,オペレーションズリサーチ
http://www-or.amp.i.kyoto-u.ac.jp
Department of Applied Mathematics and Physics,
Graduate School of Informatics, Kyoto University,
Japan
Unix and Shell Programming,
Q P Code: 60305.
Additional Mathematics I
Q P Code: 60306
Computer Organization and Architecture
Q P Code: 62303
Data Structures Using C
Q P Code: 60303
Discrete Mathematical Structures
Q P Code: 60304
Engineering Mathematics - III
Q P Code: 60301
Soft Skill Development
Q P Code: 60307
Unix and Shell Programming,
Q P Code: 60305.
Additional Mathematics I
Q P Code: 60306
Computer Organization and Architecture
Q P Code: 62303
Data Structures Using C
Q P Code: 60303
Discrete Mathematical Structures
Q P Code: 60304
Engineering Mathematics - III
Q P Code: 60301
Soft Skill Development
Q P Code: 60307
1 Faculty of Computer Studies Information Technology a.docxmercysuttle
1
Faculty of Computer Studies
Information Technology and Computing Program
M105 Tutor-Marked Assignment
Course Code: M105 Semester: Fall 2015-2016
Course Title: Introduction to Programming with Java Credit Hours: 3 Hours
Cut-Off Date: Sunday, December 13, 2015 Total Marks: 80
Contents
Preface…………………………………………………………………………………………… 1
Instructions for submitting TMA……………………………………………………………….. 1
Question One…………….……………………………………………………………………… 2
Question Two…………………….……………………………………………………………… 2
Question Three…….…………….……………………………………………………………… 3
Question Four………..…………..……………………………………………………………… 3
This TMA covers chapters 1, 2, 4 and 5 of the text book.
Instructions for submitting TMA
1. Create a new project in NetBeans. Name it: StudentName_StudentID (e.g. AhmadOmar_099999)
2. Create all the required classes in TMA inside this project. Name each class according to the
question No. in addition to your ID (e.g. Q2_StudentID)
3. You will find a solution template (document file) on LMS with the following name:
M105-TMA-2015-2016-Fall-Branch-StudentID-FirstNameLastName
You should write your answers inside this document, but you need to:
a) Sign the “Declaration of No Plagiarism” electronically (it is enough to put your
name and ID).
b) Modify the following information in the file name: Branch, StudentID and
FirstNameLastName
Example:
"Ahmad Omar" is in Kuwait Branch and his ID is 0 99999. He should change the file
name to be: M105-TMA-2015-2016-Fall-KWT-099999- AhmadOmar
4. Copy and paste the code of all the classes + the required snapshots inside the above
document file.
5. Create a compressed file including the folder of your project.
6. Name the compressed file as the document file.
7. Submit two separated files: the compressed file + the document file (without compression).
2
Important Notes:
1) You should solve TMA individually. There are no groups in TMA.
2) When writing your programs, you should follow good programming style that helps
readability. This includes:
• Using short comment at the beginning stating the purpose of each program.
• Selecting meaningful names for identifiers.
• Using spacing and indentations to help make the structure of your program clear.
You could lose up to 3 marks if you did not do that.
Question One: [10 marks]
a. Write a Java class (program) that reads from the user a real number
represents the length of the hypotenuse of an isosceles right triangle.
Then calculates and prints the area of this triangle (rounded to 2
decimal places). [9 marks]
Hint:
You can search the internet to discover how to calculate the area of
an isosceles right triangle when you only know the length of its hypotenuse.
b. Give the exact output of your program. Provide a snapshot representing the exact output of
any value from your choice. [1 mark]
Question Two: [24 marks]
a. For any quadratic equatio ...
SATISFIABILITY METHODS FOR COLOURING GRAPHScscpconf
The graph colouring problem can be solved using methods based on Satisfiability (SAT). An instance of the problem is defined by a Boolean expression written using Boolean variables and the logical connectives AND, OR and NOT. It has to be determined whether there is an assignment of TRUE and FALSE values to the variables that makes the entire expression true.A SAT problem is syntactically and semantically quite simple. Many Constraint Satisfaction Problems (CSPs)in AI and OR can be formulated in SAT. These make use of two kinds of
searchalgorithms: Deterministic and Randomized.It has been found that deterministic methods when run on hard CSP instances are frequently very slow in execution.A deterministic method always outputs a solution in the end, but it can take an enormous amount of time to do so.This has led to the development of randomized search algorithms like GSAT, which are typically based on local (i.e., neighbourhood) search. Such methodshave been applied very successfully to find good solutions to hard decision problems
BetterPie Industries has 3 million shares of common stock outstand.docxikirkton
BetterPie Industries has 3 million shares of common stock outstanding, 2 million shares of preferred stock outstanding, and 10,000 bonds. Assume the common shares are selling for $48 per share, the preferred shares are selling for $25.50 per share, and the bonds are selling for 99 percent of par.
What would be the weights used in the calculation of BetterPie’s WACC? (Do not round intermediate calculations and round your answers to 2 decimal places.)
Equity weight
%
Preferred stock weight
%
Debt weight
%
Algebra 2 Midterm Exam
1
Score: ______ / ______
Name: _________________________
Student Number: ________________
Multiple Choice: Type your answer choice in the blank.
_____1.
Simplify.
√
√
A. √
B. √
C. √
D. √
_____2. Find a quadratic function to model the values in the table. Predict the value
of y for x = 6.
X y
1 2
0 -2
3 10
A. y = -2x2 + 2x -2; –58
B. y = 2x2 – 2x -2; 60
C. y = 2x2 – 2x -2; 58
D. y = -2x2 + 2x +2; –58
Algebra 2 Midterm Exam
2
______3. A manufacturer of shipping boxes has a box shaped like a cube. The side length
is 5a + 4b. What is the volume of the box in terms of a and b?
A.
B.
C.
D.
_____4. In how many ways can 3 singers be selected from 5 who came to an audition?
A. 1
B. 10
C. 5
D. 60
_____5. Solve the problem by writing an inequality. A club decides to sell T-shirts for
$12 as a fund-raiser. It costs $20 plus $8 per T-shirt to make the T-shirts.
Write and solve an equation to find how many T-shirts the club needs to make
and sell in order to profit at least $100.
A. ( )
B.
C. ( )
D. ( )
Short Answer: Type your answer in the space below each question. Show your
work when applicable.
6. The velocity of sound in air is given by the equation √ , where v is
the velocity in meters per second and t is the temperature in degrees Celsius.
Find the temperature when the velocity is 329 meters per second by graphing
the equation. Round the answer to the nearest degree.
Algebra 2 Midterm Exam
3
7. The volume in cubic feet of a box can be expressed as ( ) , or
as the product of three linear factors with integer coefficients. The width of the
box is 2 – x.
Factor the polynomial to find linear expressions for the height and the width.
8. This table shows data on heating oil use for two years in three adjacent
buildings on Spring Street.
Heating Oil Use
Number of Gallons Used
Address 2002 2003
152 Spring St. 1215 1093
154 Spring St. 982 975
156 Spring St. 1562 1437
a. Write a matrix H to represent the data.
b. Find element . What does this element represent?
Algebra 2 Midterm Exam
4
9.
So ...
A multiple choice problem consists of a set of color classes P = {C1 , C2 , . . . , Cn }. Each color class Ci consists of a pair of objects typically a pair of points. Objective of such a problem, is to select one object from each color class such that certain optimality criteria is satisfied. One example of such problem is rainbow minmax gap problem(RMGP). In RMGP, given P, the objective is to select exactly one point from each color class, such that the maximum distance between a pair of consecutive selected points is minimized. This problem was studied by Consuegra and Narasimhan. We show that the problem is NP-hard. For our proof we also describe an auxiliary result on satisfiability. A 3-SAT formula is an LSAT formula if each clause (viewed as a set of literals) intersects at most one other clause, and, moreover, if two clauses intersect, then they have exactly one literal in common. We show that the problem of deciding whether an LSAT formula is satisfiable or not is NP-complete. We also briefly describe some approximation results of some multiple choice problems.
This presentation, created by Syed Faiz ul Hassan, explores the profound influence of media on public perception and behavior. It delves into the evolution of media from oral traditions to modern digital and social media platforms. Key topics include the role of media in information propagation, socialization, crisis awareness, globalization, and education. The presentation also examines media influence through agenda setting, propaganda, and manipulative techniques used by advertisers and marketers. Furthermore, it highlights the impact of surveillance enabled by media technologies on personal behavior and preferences. Through this comprehensive overview, the presentation aims to shed light on how media shapes collective consciousness and public opinion.
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsRosie Wells
Insight: In a landscape where traditional narrative structures are giving way to fragmented and non-linear forms of storytelling, there lies immense potential for creativity and exploration.
'Collapsing Narratives: Exploring Non-Linearity' is a micro report from Rosie Wells.
Rosie Wells is an Arts & Cultural Strategist uniquely positioned at the intersection of grassroots and mainstream storytelling.
Their work is focused on developing meaningful and lasting connections that can drive social change.
Please download this presentation to enjoy the hyperlinks!
A Method for Generating Colorings over Graph Automophism
1. A METHOD FOR GENERATING
COLORINGS OVER GRAPH
AUTOMORPHISM
Fei He, Hiroshi Nagamochi
2015.8.22.
1
The 12th International Symposium on Operations Research and its
Applications in engineering, technology and management (ISORA 2015),
Luoyang, August 21-24, 2015. 何 飛 プレゼン資料
3. Background
Enumeration of isomers of chemical compounds
Ex.
N
10 Isomers
Naphthalene
N
c
l
cl
N
cl
N
cl
N
cl
N
cl
N
cl
N
cl
NclN
cl
Ncl
Nitrogen Atom
Chlorine Atom
W
2
4. Background
Enumeration of isomers of chemical compounds can
be converted into graph coloring problems.
Ex.
N
c
l
c
l
N
10 Isomers 10 Colorings
Chemistry
Problem
Graph Coloring
Problem
N
c
l
Color the vertices with the
color of the atom attached
to it.
See the carbon atoms as
vertices.
3
5. Assumption on Graphs -- Symmetries
graph G
automorphism φ1 automorphism φ2
automorphism φ3
Axial
symmetries
A combination
of φ1 and φ2
We only deal with graphs of two axial symmetries.
Ex.
180°
4
6. Assumption on Graphs --Blocks
graph G
A block: a set of vertices that can be mapped to
each other by some automorphism.
Ex.
Block B1
180° Block B2
B1∨ B2 = W
Blocks are equivalence classes
defined by automorphisms.
W
5
7. Equivalent Colorings
Coloring c1 Coloring c2
φ2
equivalent
There exists an automorphism
φ1, φ2 or φ3
Coloring c1 Coloring c3
non-equivalent
6
8. Problem Statement
A graph G=(V, E) of two axial symmetries, a
subset W of vertices of V
Input :
Output : All non-equivalent colorings to W
Ex.
Input 1 Input 2 7
9. Output
Output : All non-equivalent colorings to W
Color IndexIn case of a Naphthalene ring:Ex.
We want to realize the generation
of colorings in polynomial delay.
Avoid duplication of calculation
Total number of possible colorings : > 460,000
… 8
Total number of non-equivalent colorings : 23,911
10. Idea of Algorithm -- Family Tree
…
…
…
…
…
…
…
* We put colorings with the
same color index in one set.
…
The Family Tree
9
11. Parent-child Relationship
…
Color Priority:
Constraints on #: # ≥# ≥# ≥# ≥# ≥# ≥
…
…
Color Index
Parent Parent
Child Child Child
Parent
# in Parent = # + #min in Child
the leading color
the leading color
the leading color
10
min
13. Generate Children Color Indices
…
min=
… … …
…
# = 1
# = 2
# = #min
# ≥ # ≥ … ≥ # ≥ #Color Priority: …
The next color in the ordering 12
becomes the new min
15. Recursive Problem Set
A coloring cInput :
Output : All colorings c’ that are the children of c
c
c’
Ex.
How to generate
colorings?
14
By using blocks
16. Summary
A graph G=(V, E) of two axial symmetries, a
subset W of vertices of V
Input :
Output : All non-equivalent colorings to W
Can be realized in polynomial delay by
using
Family Trees
Blocks defined after automorphisms
graph G
15
colorings
19. Flow of the Algorithm
Input: c Define
Blocks
Assign
Numbers
Check the symmetry of parent coloring c and define blocks
on vertices with the leading color over c’s symmetries.
Output: c’
Assign
Numbers
Decide
Positions Output: c’
Decide
Positions
Decide
Positions
Decide
Positions
Output: c’
Output: c’
…
……
18
20. Define Blocks
For a coloring c, its block is a collection of vertices with
the leading color, and can be shifted to one another by
one of the automorphisms of c.
Ex. Naphthalene ring
φ1
Block 1Block 2
Block 3
Blocks are equivalence classes
defined by c’s automorphism.
c
19
21. Define Blocks
Define blocks: check the symmetry of c and define
blocks on vertices with the leading color.
Block 1
Block 2
Block 1
Block 2
Block 3
φ1, φ2, φ3
φ1
Block 1
Block 2
Block 3
Block 4
Block 5
__
Ex. c
20
22. Flow of the Algorithm
Input: c Define
Blocks
Assign
Numbers
Assign the number of the new color to each block.
Output: c’
Assign
Numbers
Decide
Positions Output: c’
Decide
Positions
Decide
Positions
Decide
Positions
Output: c’
Output: c’
…
……
21
23. Assign Numbers
Block 1
Block 2
Block 3
Change two into
Block 1
Block 2
Block 3
2
0
0
1
1
0
1
0
1
0
2
0
0
1
1
0
0
2
Assign Numbers of to each block:
c
Ex.
22
24. Flow of the Algorithm
Input: c Define
Blocks
Assign
Numbers
Output: c’
Assign
Numbers
Decide
Positions Output: c’
Decide
Positions
Decide
Positions
Decide
Positions
Output: c’
Output: c’
…
……
Decide the positions for the new color by the
assignment of numbers in each block.
23
25. Decide Positions
Block 1
Block 2
Block 3
Change two into
Block 1
Block 2
Block 3
2
0
0
Assign Numbers of to each block:
c
c’
Block 1
Ex.
24
26. Decide Positions
Block 1
Block 2
Block 3
Change two into
Block 1
Block 2
Block 3
1
1
0
Assign Numbers of to each block:
c
c’
c’
Block 2 Block 1
Ex.
25
28. Flow of the Algorithm
Input: c Define
Blocks
Assign
Numbers
Output: c’
Assign
Numbers
Decide
Positions Output: c’
Decide
Positions
Decide
Positions
Decide
Positions
Output: c’
Output: c’
…
……
Can be calculated
automatically by our
algorithm 27
29. Summary
A graph G=(V, E) of two axial symmetries, a
subset W of vertices of V
Input :
Output : All non-isomorphic colorings to W
Can be realized in polynomial delay by
using
Family Trees
Blocks defined after automorphisms
Assignment of colors and decision
on their positions.graph G
28