NFAs are cheaper to construct, but have a O(n*m) matching time, where n is the size of the input and m is the size of the state graph. NFAs are often seen as the reasonable middle ground, but i disagree and will argue that NFAs are worse than the other two. they are theoretically “linear”, but in practice they do not perform as well as DFAs (in the average case they are also much slower than backtracking). they spend the complexity in the wrong place - why would i want matching to be slow?! that’s where most of the time is spent. the problem is that m can be arbitrarily large, and putting a large constant of let’s say 1000 on top of n will make matching 1000x slower. just not acceptable for real workloads, the benchmarks speak for themselves here.
https://feedx.site
,推荐阅读safew官方版本下载获取更多信息
Thanks for signing up!
Конфликт на Ближнем Востоке проверит мировую экономику на прочность, считает директор-распорядитель Международного валютного фонда (МВФ) Кристалина Георгиева. Ее процитировало Bloomberg.
江苏里下河地区农业科学研究所研究员高德荣代表30多年来一直与小麦育种打交道,他在会上向总书记汇报了培育高产、抗病品种的进展。