Copy of dessin. print 'Genus',1+2^(n-k-1)*(n/4-1) print ''

Σχετικά έγγραφα
Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook

Εισαγωγή στον Προγ/μό Υπολογιστών

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

Fractional Colorings and Zykov Products of graphs

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΕΠΛ 133: ΑΝΤΙΚΕΙΜΕΝΟΣΤΡΕΦΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial

Finite Field Problems: Solutions

King James Bible Greek New Testament Word List

Εξαιρέσεις Εισαγωγή. Εξαιρέσεις. ηµήτρης Λεβεντέας

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

VBA ΣΤΟ WORD. 1. Συχνά, όταν ήθελα να δώσω ένα φυλλάδιο εργασίας με ασκήσεις στους μαθητές έκανα το εξής: Version ΗΜΙΤΕΛΗΣ!!!!

Dynamic types, Lambda calculus machines Section and Practice Problems Apr 21 22, 2016

Δημιουργία Λογαριασμού Διαχείρισης Business Telephony Create a Management Account for Business Telephony

EE512: Error Control Coding

Congruence Classes of Invertible Matrices of Order 3 over F 2

On a four-dimensional hyperbolic manifold with finite volume

Advanced Subsidiary Unit 1: Understanding and Written Response

ΚΕΝΤΡΙΚΟ ΜΕΝΟΥ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΥ ΗΜΙΟΥΡΓΙΑ ΝΕΟΥ ΕΙ ΟΥΣ (CREATE PLU) ΙΟΡΘΩΣΗ Η Η ΚΑΤΑΧΩΡΗΜΕΝΟΥ. [M] [O] [Σ] [Χ] [Α] [Ρ] [Ι] [ ] [Μ] [Π] [Ο] [Υ] [Τ] [Ι]

Σημειώσεις. Ο αριθμός των στοιχείων μίας λίστας μπορεί να βρεθεί με χρήση της συνάρτησης len:

Βασικά Στοιχεία Python 3

β. Επιλέγουµε την πρώτη κατηγορία εντολών Actions (External Commands and Page Actions)

department listing department name αχχουντσ ϕανε βαλικτ δδσϕηασδδη σδηφγ ασκϕηλκ τεχηνιχαλ αλαν ϕουν διξ τεχηνιχαλ ϕοην µαριανι

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

Οδηγύεσ χρόςησ του ςυςτόματοσ ORFEAS

ΜΥΥ105: Εισαγωγή στον Προγραμματισμό. Σφάλματα, εξαιρέσεις, εκσφαλμάτωση Χειμερινό Εξάμηνο 2016

Σημειώσεις. Ο αριθμός των στοιχείων μίας λίστας μπορεί να βρεθεί με χρήση της συνάρτησης len:

Reminders: linear functions

Δομές Δεδομένων. Δημήτρης Μιχαήλ. Υλοποίηση Δυαδικού Σωρού σε γλώσσα Java. Τμήμα Πληροφορικής και Τηλεματικής Χαροκόπειο Πανεπιστήμιο

Λίστες. Lista=[ red, green, blue ] Το πλήθος των στοιχείων μια λίστας δίνεται από τη συνάρτηση len(): Len(Lista)

New bounds for spherical two-distance sets and equiangular lines

GAUGE BLOCKS. Grade 0 Tolerance for the variation in length. Limit deviation of length. ± 0.25μm. 0.14μm ±0.80μm. ± 1.90μm. ± 0.40μm. ± 1.

ΕΡΓΑΣΤΗΡΙΟ 5 ΣΗΜΕΙΩΣΕΙΣ

Python 8. Δομές Δεδομένων ΙΙ

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

Θέματα Προγραμματισμού Η/Υ

Δομές Δεδομένων - Εργαστήριο 2. Λίστες

Προγραμματιστικά Εργαλεία και Τεχνολογίες για Επιστήμη Δεδομένων

MS SERIES MS DESK TOP ENCLOSURE APPLICATION EXAMPLE FEATURE. Measuring instruments. Power supply equipments

Δυναμική μνήμη με πίνακες και λίστες

Τυπικός ορισμός και επίλυση προβλημάτων με την χρήση του search.py (Ιεραπόστολοι & Κανίβαλοι) Γαρμπής Γιώργος

1. DIATMHMATIKA/2012:1. DIATMHMATIKA 8/7/12 2:33 PM Page 11 ΙΑΤΜΗΜΑΤΙΚΑ ΣΕΜΙΝΑΡΙΑ

Ρύθμιση σε whitelist

No item Digit Description Series Reference (1) Meritek Series SI Signal Inductor LI: Leaded Inductor PI: Power Inductor

γ δ ε ζ τ υ φ χ ψ ω ᾇ ᾇ ᾇ ι κ λ ᾇ ᾇ ᾇ GFS PYRSOS ΕΤΑΙΡΕΙΑ ΕΛΛΗΝΙΚΩΝ ΤΥΠΟΓΡΑΦΙΚΩΝ ΣΤΟΙΧΕΙΩΝ GREEK FONT SOCIETY ὧ ὓ ῤ ἳ ή ἐ

Γλώσσα προγραμματισμού python

Durbin-Levinson recursive method

Q1a. HeavisideTheta x. Plot f, x, Pi, Pi. Simplify, n Integers

A Note on Intuitionistic Fuzzy. Equivalence Relation

Φωτεινή επιγραφή. για μέχρι και 96 χαρακτήρες Συνδέεται στη σειριακή θύρα των PC.

Matrices and Determinants

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS

ΙΩΑΝΝΗ ΑΘ. ΠΑΠΑΪΩΑΝΝΟΥ

ΠΑΡΑΡΤΗΜΑ Α. Σήμα Συμμόρφωσης της Εταιρείας «ΚΟΥΝΑΤΙΔΗΣ ΧΑΡΑΛΑΜΠΟΣ OCTOPUS»

Electronic Supplementary Information (ESI)

ΠΡΟΣΟΜΟΙΩΣΗ ΘΕΩΡΙΑ 1. H αρχική οθόνη του Open Roberta lab

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

Math 6 SL Probability Distributions Practice Test Mark Scheme

ΙΚΤΥΩΤΟ ΜΟΝΤΕΛΟ (Network Model) Μαθ. # 15

Εισαγωγή στον Προγραμματισμό Python Μάθημα 4: Συναρτήσεις (functions) και δομοστοιχεία (modules) στην Python

The Jordan Form of Complex Tridiagonal Matrices

Εργαστήριο του Μαθήματος: ΕΠΛ003. Ενότητα 3 Εισαγωγή στο Microsoft Word

How to register an account with the Hellenic Community of Sheffield.

CYTA Cloud Server Set Up Instructions

17TimeThis.h function returns reference pointer to same object { return *this; }

A Hierarchy of Theta Bodies for Polynomial Systems

A Bonus-Malus System as a Markov Set-Chain. Małgorzata Niemiec Warsaw School of Economics Institute of Econometrics

Γλώσσες Προγραμματισμού Εφαρμογών - ΜΕΠΒ20

TMA4115 Matematikk 3

RCS750 3-circuit square track system flexible and multifunctional

Κλάσεις στην Python. Δημιουργία κλάσεων

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ. Βάσεις Δεδομένων (4 ο εξάμηνο) Εργαστήριο MySQL #6

ΠΟΛΥ ΜΕΓΑΛΗ : ΜΕΓΑΛΗ : ΜΕΣΑΙΑ: ΜΙΚΡΗ

Partial Differential Equations in Biology The boundary element method. March 26, 2013

Σχέσεις, Ιδιότητες, Κλειστότητες

Εισαγωγή στους Υπολογιστές

Bounding Nonsplitting Enumeration Degrees

SOAP API. Table of Contents

Partial Trace and Partial Transpose

F19MC2 Solutions 9 Complex Analysis

Τεχνητή Νοημοσύνη ΙΙ Εαρινό Εξάμηνο Εργασία ΙΙ: Σχεδιασμός Ημερομηνία Παράδοσης: 26 Μαρτίου 2012

Πληρουορική Γ Γσμμασίοσ

C.S. 430 Assignment 6, Sample Solutions

Εγχειρίδια Μαθηµατικών και Χταποδάκι στα Κάρβουνα

MSN DESK TOP ENCLOSURE WITH STAND / CARRYING HANDLE

Enantioselective Organocatalytic Michael Addition of Isorhodanines. to α, β-unsaturated Aldehydes

Multilayer Ceramic Chip Capacitors

Scratch Διδακτική του Προγραμματισμού. Παλαιγεωργίου Γιώργος

Βαζηθό κάζεκα γηα ην ArcGIS

ΗΜΙΟΥΡΓΙΑ ΜΗΧΑΝΟΛΟΓΙΚΩΝ ΣΧΕ ΙΩΝ (DRAWINGS)

Εισαγωγή στο MS Word

SPARE PARTS LIST. for. Infrared oil heater. Model. Daystar. Type. PH5 for 120V 60Hz. May, 2017

Θέματα Προγραμματισμού Η/Υ

Finite difference method for 2-D heat equation

Multilayer Ceramic Chip Capacitors

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

ΜΑΘΗΜΑΤΑ PYTHON. Καθηγητής Ι. Δημητρίου.

Κλάσεις στην Python. Δημιουργία κλάσεων

Minimum Spanning Tree: Prim's Algorithm

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

2 Composition. Invertible Mappings

Δομές Δεδομένων & Αλγόριθμοι

Transcript:

5/27/4, 4:8 PM Copy of dessin # insert your generator matrix except if k= leave as [] generator=[(,,,, )] if generator!=[]: n=len(generator[]) # if k= then insert n n=4 k=len(generator) dash=[, 2, 5, ] direction_black=[2, 3, 4, 5, 6, ] print [n,k],'code' print generator print 'Genus',+2^(n-k-)*(n/4-) print '' # creates colored N-cube from sage.plot.colors import rainbow C = graphs.cubegraph(n) R = rainbow(n) edge_colors = {} for i in range(n): edge_colors[r[i]] = [] C.allow_multiple_edges(False) for u,v,l in C.edges(): for i in range(n): if u[i]!= v[i]: C.set_edge_label(u,v,i+) C.plot(edge_colors=C._color_by_label()).show() [5, ] code [(,,,, )] Genus 3 Page of 4

5/27/4, 4:8 PM len(c.edges()) 4 # creates dictionary to get vertex from equivalent tuple dict={} for i in C.vertices(): word=[] for j in i: word.append(int(j)) dict[tuple(word)]=i V=GF(2)^n if generator!=[]: Page 2 of 4

5/27/4, 4:8 PM # creates code from generator matrix MS = MatrixSpace(GF(2),k,n) gen = MS(generator) code= LinearCode(gen) # creates the equivalence class of vertices in N-cube eqclass=[] for i in V: if len(eqclass)==2^(n-k): used='n' # check if class is done already for j in eqclass: if i in j: used ='y' if used=='y': continue # add new class list=[] for l in code: list.append(i+l) eqclass.append(list) #print 'equivalence classes' #for i in eqclass: #print i #print '' # merge all vertices in an equivalence class for i in eqclass: for j in range(,2^k): C.merge_vertices([dict.get(tuple(i[])),dict.get(tuple(i[j]))]) print 'chromotoplology' for u,v,l in C.edges(): edge_colors[r[l-]].append((u,v,l)) C.plot(edge_colors=C._color_by_label()).show() print '' # for dimension codes eqclass=[] for i in V: eqclass.append([i]) Page 3 of 4

5/27/4, 4:8 PM chromotoplology #label edges to d #print 'edges' count= for i in eqclass: if i[].hamming_weight()%2==: for u,v,l in C.edges(): if u==dict.get(tuple(i[])) or v==dict.get(tuple(i[])): C.set_edge_label(u,v,l+count) count+=n #print C.edges() #print '' Page 4 of 4

5/27/4, 4:8 PM # create list of pi(v,black) sigb=[] for i in eqclass: if i[].hamming_weight()%2==: pi=[] for j in range(,n+): for u,v,l in C.edges_incident([dict.get(tuple(i[]))]): if l%n==j%n: pi.append(l) sigb.append(tuple(pi)) # create list of pi(v,white) sigw=[] for i in eqclass: if i[].hamming_weight()%2==: pi=[] for j in range(n,,-): for u,v,l in C.edges_incident([dict.get(tuple(i[]))]): if l%n==j%n: pi.append(l+n*2^(n-)) sigw.append(tuple(pi)) # create list of tau tau_list=[] for i in range(,len(c.edges())+): tau_list.append((i,i+n*2^(n-))) # create sigma and sigma2 and tau S=SymmetricGroup(n*2^(n)) sigma=s(sigb) sigma2=s(sigw) tau=s(tau_list) print 'sigma white' print sigma print '' print 'sigma black' print sigma2 print '' print 'tau' print tau print '' print 'Pi Infinity' print sigma2*sigma*tau print 'sigma ' print sigma Page 5 of 4

5/27/4, 4:8 PM print 'sigma 2' print tau*sigma2*tau print 'Sigma Infinty' print tau*sigma2*tau*sigma sigma white (,2,3,4)(5,6,7,8)(9,,,2)(3,4,5,6) sigma black (33,48,43,38)(34,37,44,47)(35,46,4,4)(36,39,42,45) tau (,33)(2,34)(3,35)(4,36)(5,37)(6,38)(7,39)(8,4)(9,4)(,42)(,43)\ (2,44)(3,45)(4,46)(5,47)(6,48) Pi Infinity (,34,5,38)(2,35,4,47)(3,36,7,4)(4,33,6,45)(6,39,,43)(8,37,2,4\ )(9,42,3,46)(,44,5,48) sigma (,2,3,4)(5,6,7,8)(9,,,2)(3,4,5,6) sigma 2 (,6,,6)(2,5,2,5)(3,4,9,8)(4,7,,3) Sigma Infinty (,3)(2,6)(3,5)(4,8)(5,9)(7,)(,4)(2,6) Face=[] true='y' for i in range(,len(c.edges())+): temp=[] temp.append(i) temp.append(tau(sigma2(tau(i)))) temp.append(sigma(tau(sigma2(tau(i))))) temp.append(tau(sigma2(tau(sigma(tau(sigma2(tau(i)))))))) for j in Face: num= for k in temp: if k in j: num+= if num==4: true='n' if true=='y': Face.append(temp) true='y' print Face [[, 4, 3, 2]] Page 6 of 4

5/27/4, 4:8 PM for i in eqclass: if i[].hamming_weight()%2==: print i [(, )] [(, )] A=[] for i in eqclass: if i[].hamming_weight()%2==: B=[] for j in range(,len(c.edges())+): for k in C.edges(): if j==k[2]: if dict.get(tuple(i[])) in k[] or dict.get(tuple(i[])) in k[]: B.append() B.append() if B not in A: A.append(B) for i in eqclass: if i[].hamming_weight()%2!=: B=[] for j in range(,len(c.edges())+): for k in C.edges(): if j==k[2]: if dict.get(tuple(i[])) in k[] or dict.get(tuple(i[])) in k[]: B.append() B.append() if B not in A: A.append(B) print A [[,,, ], [,,, ], [,,, ], [,,, ]] A2=[] for i in Face: B2=[] for j in range(,len(c.edges())+): if j in i: B2.append() B2.append() A2.append(B2) Page 7 of 4

5/27/4, 4:8 PM Copy of dessin -- Sage Page 8 of 4 print A2 [[,,, ]] M=MatrixSpace(GF(2),len(C.vertices()),len(C.edges())) H=M(A) H V=H.row_space() perp=v.basis_matrix().right_kernel() perp M2=MatrixSpace(GF(2),len(C.edges())/2,len(C.edges())) H2=M2(A2) H2 M3=MatrixSpace(GF(2),38,len(C.edges())) HH=H.row_space().basis() HH2=H2.row_space().basis() HH=HH+HH2 M3(HH),H,H2 Traceback (click to the left of this block for traceback)... TypeError: cannot construct an element of Full MatrixSpace of 2 by 4 dense matrices over Finite Field of size 2 from [[,,, ]]! Traceback (click to the left of this block for traceback)... TypeError: cannot construct an element of Full MatrixSpace of 38 by 6 dense matrices over Finite Field of size 2 from [(,,,,,,,,,,,,,,, ), (,,,,,,,,,,, RowSpan F2

5/27/4, 4:8 PM,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, ), (,,,,,,,,,,,,,,, )]! F4.<omega>=GF(4) Q=[] for i in H: temp=[] for j in range(len(i)): if j in dash: temp.append(i[j]*omega) Q.append(temp) Q2=[] for i in H2: temp=[] for j in range(len(i)): if j in dash: temp.append(i[j]*omega^2) Q2.append(temp) R=[] used=[] for i in Q: temp=[] for j in range(len(i)): if j in direction: if i[j]!=: if j not in used: temp.append(omega^2) used.append(j) Page 9 of 4

5/27/4, 4:8 PM temp.append() R.append(temp) R2=[] for i in Q2: temp=[] for j in range(len(i)): if j in direction: if i[j]!=: if j not in used: used.append(j) temp.append(omega) temp.append() R2.append(temp) Traceback (click to the left of this block for traceback)... NameError: name 'direction' is not defined print R print R2 [] Traceback (click to the left of this block for traceback)... NameError: name 'R2' is not defined def AdditiveCodeGenMat(H,H2): B=[] for i in H: B.append(i) B.pop() B2=[] for i in H2: B2.append(i) B2.pop() W=[omega*v for v in B] W2=[omega^2*v for v in B2] W=W+W2 FMS=MatrixSpace(F4,len(W),len(H.columns())) G=FMS(W) Page of 4

5/27/4, 4:8 PM Copy of dessin -- Sage Page of 4 return G def AdditiveCodeGenMatDash(): Q.pop() Q2.pop() Q=Q+Q2 FMS=MatrixSpace(F4,len(Q),len(H.columns())) G=FMS(Q) return G AA=AdditiveCodeGenMat(H,H2) AdditiveCodeGenMatDash() R=[] R2=[] def AdditiveCodeGenMatDashOrient(): count= for i in Q: temp=[] if count<len(q)/2: for j in range (len(i)): if j in direction_black: temp.append(i[j]*omega) + + + + + + +

5/27/4, 4:8 PM Copy of dessin -- Sage Page 2 of 4 R.append(temp) count+= for j in range (len(i)): if j not in direction_black: temp.append(i[j]*omega) R.append(temp) for i in Q2: temp=[] for j in range(len(i)): if j in direction_black: temp.append(i[j]*omega^2) R2.append(temp) R=R+R2 FMS=MatrixSpace(F4,len(R),len(H.columns())) G=FMS(R) return G Z=AdditiveCodeGenMatDashOrient() Z FMS=MatrixSpace(F4,len(R),len(H.columns())) FMS2=MatrixSpace(F4,len(R2),len(H.columns())) MM=FMS(R) NN=FMS2(R2) + + + + + + + + + + + +

5/27/4, 4:8 PM orth='y' for i in MM: if orth=='n': for j in NN: if i*j!=: orth='n' print i, j if orth=='y': print 'orthogonal' print 'not orthogonal' (omega,,,,, omega,,,,, omega,,,,, omega) (, omega +,,, omega +, omega,,,,,,,,,, ) not orthogonal Z.row_space().basis() [(,,,,,,,,,,,,,,, ),(,,,,,,, +,,,,,,,, ),(,, M3=MatrixSpace(F4,len(Q),len(Q[])) Z=M3(R) M4=MatrixSpace(F4,len(Q2),len(Q2[])) ZZ=M4(R2) orth='y' for i in Z: if orth=='y': for j in ZZ: if i*j!=: orth='n' if orth=='y': Traceback (click to the left of this block for traceback)... IndentationError: expected an indented block omega*omega^2 M3=MatrixSpace(F4,len(Q),len(Q[])) M4=MatrixSpace(F4,len(Q2),len(Q[2])) Q=M3(Q) Q22=M4(Q2) orth='y' Page 3 of 4

5/27/4, 4:8 PM for i in Q.row_space().basis(): for j in Q22.row_space().basis(): if i*j!=: orth='n' if orth=='n': if orth=='y': print 'orthogonal' orthogonal Page 4 of 4