Combothermal

Untitled

Sep 11th, 2023
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. dep k with m nodes on cycle:
  2.  
  3. Rule: Number of leaves is equal to sum a_i - 2.
  4. Rule: Must have more than one cycle vertex.
  5. All cycle vertices must have deg at least 3.
  6.  
  7. m nodes on cycle, k depth: need at least 3 vertices in cycle.
  8. Need at least m(k-1) extenders.
  9.  
  10. Seems a little easier to just depthmax?
  11. Two vertices on cycle. Even # of extenders: Okay.
  12. Odd # of extenders: Maybe invalid.
  13.  
  14. We can def handle:
  15. All 2s
  16. 2 or more 3+'s, even number of extenders (assuming balance constraint).
  17. No 2's, balance constraint respected (build cycle)
  18.  
  19. Wait balance constraint is just sum of degrees is 2n lol.
  20. We def can't handle:
  21. - Sum of degs != 2n
  22. - 3322211, 33211, etc
  23.  
  24. Iterate over # of vertices in cycle?
  25.  
  26. 33: Even # of 2's ok
  27. 333: one 2 okay, two 2's bad, three 2's okay, four 2's ok. Generally anything except two 2's is ok.
  28. 43: One 2 bad, two 2's ok, three 2's ok, four 2's ok, five 2's ok, generally anything we want is okay.
  29. 44: One 2 bad, 2+ is always fine.
  30.  
  31. two cycle vertices, one 2 is always bad.
  32.  
  33. Can we do a greedy assignment or something?
  34.  
  35. Generally: with two cycle vertices, 2+ 2's is always fine UNLESS 33 and odd number of 2's.
  36.  
  37.  
  38. No 2's: Okay
  39. 2+ cycle vertices:
  40. Ok unless (a) only one extra and it's a 2 or (b) 33 and odd # of 2's.
  41. Aside from these cases, there must be at least two extras.
  42.  
  43. Case 1. Even # of extras.
  44.  
  45. If sum is not 2n: Bad
  46. If all 2's: Ok
  47. Otherwise, there is at least one 1. If only one cycle vertex, bad.
  48. If no 2's, okay (build cycle out of them, connect others).
  49. If there's an even # of 2+ vertices, then we can split them.
  50. If there are just three vertices with deg >= 1 and one is a 2 (note that we must have two cycle vertices), then bad.
  51. If there's a 4 or above, we can add one extra connector to the 4 and then split the rest.
  52. If there are 33 and then odd # of 2's, OR 33322111, then bad.
  53. Last case: Odd # of connectors with at least three 3's. Build 33 cycle, connect a 3 to the first one and an extra to that 3. This is definitely possible (must have a third 3 bc otherwise it would be odd # of 2's, must have at least one 2 giving four total vertices, must have odd number of connectors so at least one more
  54.  
  55. What if 33322111?
  56.  
  57. At least one 1, at least 2 >2
  58. at least one 2
  59. odd # of 2+s
  60. At least five 2+s
  61. No 4+s
  62. At least three 3's
Advertisement
Add Comment
Please, Sign In to add comment