From the course: Exploring Deterministic LLM Programming
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Understanding complexity
From the course: Exploring Deterministic LLM Programming
Understanding complexity
- [Narrator] Cyclomatic complexity is a great way to mathematically think about code. And this is something that is often forgotten about when you're building a solution, is you build something that works, or you ask for a agentic tool to build something. It looks like it works, but what is the math? What is the complexity? And if you look at this visually, you can see that there are three distinct examples here. First, we have linear. There's almost nothing going on. In this case, it's very easy to reason about what's happening in the code. If we look at something that's moderate complexity, let's say cyclomatic complexity of 10, you can see there's different brand statements. Maybe it's a conditional for loop or something like that. And you can look at it and mostly understand what's happening. If you look at this chaotic version, this 100 cyclomatic complexity, you could have just complete chaos because you have…
Contents
-
-
-
-
Illusion of control agents3m 31s
-
(Locked)
Increasing determinism in deep context3m 32s
-
(Locked)
Understanding AST agentic coding3m 32s
-
(Locked)
Understanding complexity3m 4s
-
(Locked)
Understanding entropy3m 27s
-
(Locked)
Understanding code churn3m 24s
-
(Locked)
Roadmap sprints and technical debt3m 9s
-
(Locked)
SATD predicts technical debt2m 40s
-
(Locked)
Provability score3m 13s
-
-