[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H8YHPDZHDGHZ9HA0F8V135":3,"skill-same:01M6H8YHPDZHDGHZ9HA0F8V135":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M6H8YHPDZHDGHZ9HA0F8V135","automata",null,"Automata theory and computation","NeuralBlitz\u002FMito","NeuralBlitz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F79354388?v=4","01M6H8T2TFH477HRS0KTSTKR2E","David Riggs","01M6H8T2YQQDXPYM092P670Z21",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fautomata\u002FSKILL.md",[],[5,19,20,21,22],"science","computer","opencode","computer-science","2026-11-10 10:12:30",false,"---\nname: automata\ndescription: Automata theory and computation\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  category: computer-science\n---\n\n## What I do\n- Implement finite automata\n- Design regular expressions\n- Build parsers and lexers\n- Understand computational limits\n\n## When to use me\nWhen building text processors, lexical analyzers, or pattern matchers.\n\n## Finite Automata\n\n### Deterministic Finite Automaton\n```python\nfrom typing import Set, Dict\n\nclass DFA:\n    \"\"\"Deterministic Finite Automaton\"\"\"\n    \n    def __init__(self, states: Set[str], alphabet: Set[str],\n                 transition: Dict[str, Dict[str, str]],\n                 start_state: str, accept_states: Set[str]):\n        self.states = states\n        self.alphabet = alphabet\n        self.transition = transition\n        self.start_state = start_state\n        self.accept_states = accept_states\n    \n    def accept(self, input_string: str) -> bool:\n        \"\"\"Check if DFA accepts input\"\"\"\n        current = self.start_state\n        \n        for symbol in input_string:\n            if symbol not in self.alphabet:\n                return False\n            \n            if current not in self.transition:\n                return False\n            \n            if symbol not in self.transition[current]:\n                return False\n            \n            current = self.transition[current][symbol]\n        \n        return current in self.accept_states\n    \n    def simulate(self, input_string: str) -> Dict:\n        \"\"\"Simulate DFA and return trace\"\"\"\n        trace = [{\"state\": self.start_state, \"input\": \"\"}]\n        current = self.start_state\n        \n        for i, symbol in enumerate(input_string):\n            if current in self.transition and symbol in self.transition[current]:\n                current = self.transition[current][symbol]\n                trace.append({\"state\": current, \"input\": input_string[:i+1]})\n        \n        return {\n            \"accepted\": current in self.accept_states,\n            \"final_state\": current,\n            \"trace\": trace\n        }\n\n# Example: Binary strings divisible by 3\ndivisible_by_3_dfa = DFA(\n    states={\"q0\", \"q1\", \"q2\"},\n    alphabet={\"0\", \"1\"},\n    transition={\n        \"q0\": {\"0\": \"q0\", \"1\": \"q1\"},\n        \"q1\": {\"0\": \"q2\", \"1\": \"q0\"},\n        \"q2\": {\"0\": \"q1\", \"1\": \"q2\"}\n    },\n    start_state=\"q0\",\n    accept_states={\"q0\"}\n)\n```\n\n### Nondeterministic Finite Automaton\n```python\nclass NFA:\n    \"\"\"Nondeterministic Finite Automaton\"\"\"\n    \n    def __init__(self, states: Set[str], alphabet: Set[str],\n                 transition: Dict[str, Dict[str, Set[str]]],\n                 epsilon_transition: Dict[str, Set[str]],\n                 start_state: str, accept_states: Set[str]):\n        self.states = states\n        self.alphabet = alphabet\n        self.transition = transition\n        self.epsilon_transition = epsilon_transition\n        self.start_state = start_state\n        self.accept_states = accept_states\n    \n    def epsilon_closure(self, states: Set[str]) -> Set[str]:\n        \"\"\"Compute epsilon closure of states\"\"\"\n        closure = set(states)\n        stack = list(states)\n        \n        while stack:\n            state = stack.pop()\n            if state in self.epsilon_transition:\n                for next_state in self.epsilon_transition[state]:\n                    if next_state not in closure:\n                        closure.add(next_state)\n                        stack.append(next_state)\n        \n        return closure\n    \n    def move(self, states: Set[str], symbol: str) -> Set[str]:\n        \"\"\"Compute move operation\"\"\"\n        result = set()\n        \n        for state in states:\n            if state in self.transition and symbol in self.transition[state]:\n                result.update(self.transition[state][symbol])\n        \n        return result\n    \n    def accept(self, input_string: str) -> bool:\n        \"\"\"Check if NFA accepts input\"\"\"\n        current = self.epsilon_closure({self.start_state})\n        \n        for symbol in input_string:\n            current = self.epsilon_closure(self.move(current, symbol))\n        \n        return bool(current & self.accept_states)\n```\n\n### Regular Expressions to NFA (Thompson's Construction)\n```python\nclass RegexToNFA:\n    \"\"\"Convert regex to NFA using Thompson's construction\"\"\"\n    \n    def __init__(self):\n        self.state_counter = 0\n    \n    def create_state(self) -> str:\n        \"\"\"Create unique state\"\"\"\n        state = f\"q{self.state_counter}\"\n        self.state_counter += 1\n        return state\n    \n    def build_nfa(self, regex: str) -> NFA:\n        \"\"\"Build NFA from regex\"\"\"\n        # Simplified: parse and build NFA\n        # In practice, use proper regex parser\n        pass\n    \n    def union(self, nfa1: NFA, nfa2: NFA) -> NFA:\n        \"\"\"Union of two NFAs\"\"\"\n        start = self.create_state()\n        accept = self.create_state()\n        \n        new_transition = {}\n        new_transition[start] = {\"\": {nfa1.start_state, nfa2.start_state}}\n        \n        # Connect accept states to new accept\n        for state in nfa1.accept_states:\n            if state not in new_transition:\n                new_transition[state] = {}\n            new_transition[state][\"\"] = {accept}\n        \n        return NFA(\n            states=\"...\",\n            alphabet=\"...\",\n            transition=new_transition,\n            epsilon_transition=\"...\",\n            start_state=start,\n            accept_states={accept}\n        )\n```\n\n### Pushdown Automaton\n```python\nclass PDA:\n    \"\"\"Pushdown Automaton for context-free languages\"\"\"\n    \n    def __init__(self, states: Set[str], alphabet: Set[str],\n                 stack_alphabet: Set[str],\n                 transition: Dict[str, Dict[str, Dict[str, tuple]]],\n                 start_state: str, accept_states: Set[str]):\n        self.states = states\n        self.alphabet = alphabet\n        self.stack_alphabet = stack_alphabet\n        self.transition = transition\n        self.start_state = start_state\n        self.accept_states = accept_states\n    \n    def accept(self, input_string: str, mode: str = \"final\") -> bool:\n        \"\"\"Check if PDA accepts input\"\"\"\n        stack = [\"$\"]\n        state = self.start_state\n        input_pos = 0\n        \n        while input_pos \u003C= len(input_string):\n            # Try epsilon transition\n            if self._epsilon_transition(state, stack):\n                state, stack = self._apply_transition(\n                    state, \"\", stack, \"ε\"\n                )\n            \n            # Try symbol transition\n            if input_pos \u003C len(input_string):\n                symbol = input_string[input_pos]\n                if self._symbol_transition(state, symbol, stack):\n                    state, stack = self._apply_transition(\n                        state, symbol, stack, symbol\n                    )\n                    input_pos += 1\n            \n            # Check for acceptance\n            if input_pos == len(input_string) and state in self.accept_states:\n                return True\n        \n        return False\n```\n","## What I do\n- Implement finite automata\n- Design regular expressions\n- Build parsers and lexers\n- Understand computational limits\n\n## When to use me\nWhen building text processors, lexical analyzers, or pattern matchers.\n\n## Finite Automata\n\n### Deterministic Finite Automaton\n```python\nfrom typing import Set, Dict\n\nclass DFA:\n    \"\"\"Deterministic Finite Automaton\"\"\"\n    \n    def __init__(self, states: Set[str], alphabet: Set[str],\n                 transition: Dict[str, Dict[str, str]],\n                 start_state: str, accept_states: Set[str]):\n        self.states = states\n        self.alphabet = alphabet\n        self.transition = transition\n        self.start_state = start_state\n        self.accept_states = accept_states\n    \n    def accept(self, input_string: str) -> bool:\n        \"\"\"Check if DFA accepts input\"\"\"\n        current = self.start_state\n        \n        for symbol in input_string:\n            if symbol not in self.alphabet:\n                return False\n            \n            if current not in self.transition:\n                return False\n            \n            if symbol not in self.transition[current]:\n                return False\n            \n            current = self.transition[current][symbol]\n        \n        return current in self.accept_states\n    \n    def simulate(self, input_string: str) -> Dict:\n        \"\"\"Simulate DFA and return trace\"\"\"\n        trace = [{\"state\": self.start_state, \"input\": \"\"}]\n        current = self.start_state\n        \n        for i, symbol in enumerate(input_string):\n            if current in self.transition and symbol in self.transition[current]:\n                current = self.transition[current][symbol]\n                trace.append({\"state\": current, \"input\": input_string[:i+1]})\n        \n        return {\n            \"accepted\": current in self.accept_states,\n            \"final_state\": current,\n            \"trace\": trace\n        }\n\n# Example: Binary strings divisible by 3\ndivisible_by_3_dfa = DFA(\n    states={\"q0\", \"q1\", \"q2\"},\n    alphabet={\"0\", \"1\"},\n    transition={\n        \"q0\": {\"0\": \"q0\", \"1\": \"q1\"},\n        \"q1\": {\"0\": \"q2\", \"1\": \"q0\"},\n        \"q2\": {\"0\": \"q1\", \"1\": \"q2\"}\n    },\n    start_state=\"q0\",\n    accept_states={\"q0\"}\n)\n```\n\n### Nondeterministic Finite Automaton\n```python\nclass NFA:\n    \"\"\"Nondeterministic Finite Automaton\"\"\"\n    \n    def __init__(self, states: Set[str], alphabet: Set[str],\n                 transition: Dict[str, Dict[str, Set[str]]],\n                 epsilon_transition: Dict[str, Set[str]],\n                 start_state: str, accept_states: Set[str]):\n        self.states = states\n        self.alphabet = alphabet\n        self.transition = transition\n        self.epsilon_transition = epsilon_transition\n        self.start_state = start_state\n        self.accept_states = accept_states\n    \n    def epsilon_closure(self, states: Set[str]) -> Set[str]:\n        \"\"\"Compute epsilon closure of states\"\"\"\n        closure = set(states)\n        stack = list(states)\n        \n        while stack:\n            state = stack.pop()\n            if state in self.epsilon_transition:\n                for next_state in self.epsilon_transition[state]:\n                    if next_state not in closure:\n                        closure.add(next_state)\n                        stack.append(next_state)\n        \n        return closure\n    \n    def move(self, states: Set[str], symbol: str) -> Set[str]:\n        \"\"\"Compute move operation\"\"\"\n        result = set()\n        \n        for state in states:\n            if state in self.transition and symbol in self.transition[state]:\n                result.update(self.transition[state][symbol])\n        \n        return result\n    \n    def accept(self, input_string: str) -> bool:\n        \"\"\"Check if NFA accepts input\"\"\"\n        current = self.epsilon_closure({self.start_state})\n        \n        for symbol in input_string:\n            current = self.epsilon_closure(self.move(current, symbol))\n        \n        return bool(current & self.accept_states)\n```\n\n### Regular Expressions to NFA (Thompson's Construction)\n```python\nclass RegexToNFA:\n    \"\"\"Convert regex to NFA using Thompson's construction\"\"\"\n    \n    def __init__(self):\n        self.state_counter = 0\n    \n    def create_state(self) -> str:\n        \"\"\"Create unique state\"\"\"\n        state = f\"q{self.state_counter}\"\n        self.state_counter += 1\n        return state\n    \n    def build_nfa(self, regex: str) -> NFA:\n        \"\"\"Build NFA from regex\"\"\"\n        # Simplified: parse and build NFA\n        # In practice, use proper regex parser\n        pass\n    \n    def union(self, nfa1: NFA, nfa2: NFA) -> NFA:\n        \"\"\"Union of two NFAs\"\"\"\n        start = self.create_state()\n        accept = self.create_state()\n        \n        new_transition = {}\n        new_transition[start] = {\"\": {nfa1.start_state, nfa2.start_state}}\n        \n        # Connect accept states to new accept\n        for state in nfa1.accept_states:\n            if state not in new_transition:\n                new_transition[state] = {}\n            new_transition[state][\"\"] = {accept}\n        \n        return NFA(\n            states=\"...\",\n            alphabet=\"...\",\n            transition=new_transition,\n            epsilon_transition=\"...\",\n            start_state=start,\n            accept_states={accept}\n        )\n```\n\n### Pushdown Automaton\n```python\nclass PDA:\n    \"\"\"Pushdown Automaton for context-free languages\"\"\"\n    \n    def __init__(self, states: Set[str], alphabet: Set[str],\n                 stack_alphabet: Set[str],\n                 transition: Dict[str, Dict[str, Dict[str, tuple]]],\n                 start_state: str, accept_states: Set[str]):\n        self.states = states\n        self.alphabet = alphabet\n        self.stack_alphabet = stack_alphabet\n        self.transition = transition\n        self.start_state = start_state\n        self.accept_states = accept_states\n    \n    def accept(self, input_string: str, mode: str = \"final\") -> bool:\n        \"\"\"Check if PDA accepts input\"\"\"\n        stack = [\"$\"]\n        state = self.start_state\n        input_pos = 0\n        \n        while input_pos \u003C= len(input_string):\n            # Try epsilon transition\n            if self._epsilon_transition(state, stack):\n                state, stack = self._apply_transition(\n                    state, \"\", stack, \"ε\"\n                )\n            \n            # Try symbol transition\n            if input_pos \u003C len(input_string):\n                symbol = input_string[input_pos]\n                if self._symbol_transition(state, symbol, stack):\n                    state, stack = self._apply_transition(\n                        state, symbol, stack, symbol\n                    )\n                    input_pos += 1\n            \n            # Check for acceptance\n            if input_pos == len(input_string) and state in self.accept_states:\n                return True\n        \n        return False\n```\n",{"name":5,"license":15,"metadata":28,"description":7,"compatibility":21},{"audience":29,"category":22},"developers","main","2ea764e153842704d24a2e9aa4170441a7f03081",".opencode\u002Fskills\u002Fautomata","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito","https:\u002F\u002Fgithub.com\u002FNeuralBlitz","nuralnexus.org","Independent Multidisciplinary Researcher, Creative Producer, and AI Systems Architect\r\nAn independent creator and research-driven systems designer.","2026-11-12 03:13:05",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add NeuralBlitz\u002FMito --skill automata",{"tool":44,"command":45},"bunx","bunx skills add NeuralBlitz\u002FMito --skill automata",{"tool":47,"command":48},"pnpm","pnpm dlx skills add NeuralBlitz\u002FMito --skill automata","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fautomata\u002FSKILL.md",true,[],[53,69,82,95,103,117],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":23},"01M6HAZSAQK1S27CEZYAYJTQDX","wireless-communications","Wireless systems, mobile networks, and 5G\u002F6G","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwireless-communications\u002FSKILL.md",[],[60,61,62,63,64,65,66,67,21,68],"communications","wireless communications","wireless","systems","engineering","networks","5G","students","mobile",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":23},"01M6HAZFX6E8NK3WZWDX5YCKYY","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebassembly\u002Fwebsockets\u002FSKILL.md",[],[71,76,77,78,21,79,80,81],"websocket implementation","time","implementation","real-time","websocket","best practices",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":23},"01M6HAZ6DAXBQ7QHXXM1EM7715","vulnerability-auditing","Vulnerability assessment and auditing","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvulnerability-auditing\u002FSKILL.md",[],[89,90,91,92,21,93,94],"vulnerability","vulnerability auditing","security","vulnerability assessment","cybersecurity","assessment",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":23},"01M6HAZ3FKF3CS9Z3J96RVE2ZE","vulnerability-assessment","Finding and assessing security vulnerabilities","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvue\u002Fvulnerability-assessment\u002FSKILL.md",[],[92,89,94,91,102,21],"vulnerabilities",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":23},"01M6HAYSHM6HKRKEHFP0SGZQX7","vlsi-design","Very-Large-Scale Integration circuit design and semiconductor engineering","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvlsi-design\u002FSKILL.md",[],[110,111,112,113,114,64,20,21,115,67,116],"vlsi design","VLSI","design","hardware","integration","scale","circuit",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":23},"01M6HAYPQ30FFE2JXD7WQJ8R6C","unsupervised","Unsupervised learning concepts","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvisualization\u002Funsupervised\u002FSKILL.md",[],[119,124,21,125,126,127,128,129],"learning","intelligence","unsupervised learning","machine","concepts","machine-learning"]