{"id":{"repo_id":"whiterose","oai_identifier":"oai:etheses.whiterose.ac.uk:36969"},"canonical_url":"https://search.ndltd.org/etd/whiterose/oai:etheses.whiterose.ac.uk:36969","repository":{"repo_id":"whiterose","name":"White Rose University Consortium","base_url":"https://etheses.whiterose.ac.uk/cgi/oai2"},"display":{"title":"Speeding up Graph Programs","abstract":"This thesis presents an improvement in rule-based graph programming which enables the design of graph programs that achieve the time complexity of imperative linear-time algorithms. Achieving such complexity in conventional languages using graph transformation rules is challenging due to the high cost of graph matching. Previous work demonstrated that with rooted rules, certain algorithms can be executed in linear time using the graph programming language GP 2. However, for non-destructive algorithms that preserve the structure of input graphs, achieving linear runtime required input graphs to be both connected and of bounded node degree. In this thesis, we overcome these limitations by enhancing the graph data structure generated by the GP 2 compiler and exploiting this new structure within the programs. We present four case studies: a program that checks graph’s connectedness, a program that two-colours a graph, a cycle detection program, and a program that computes the shortest weighted distances from a single source to all other nodes in a weighted graph. The first three programs run in linear time on both connected and disconnected input graphs with arbitrary node degrees. The fourth program achieves a time complexity comparable to that of conventional implementations in imperative programming languages. For each program, we provide a formal analysis of its correctness and complexity, supplemented by empirical benchmarking.","abstract_html":"This thesis presents an improvement in rule-based graph programming which enables the design of graph programs that achieve the time complexity of imperative linear-time algorithms. Achieving such complexity in conventional languages using graph transformation rules is challenging due to the high cost of graph matching. Previous work demonstrated that with rooted rules, certain algorithms can be executed in linear time using the graph programming language GP 2. However, for non-destructive algorithms that preserve the structure of input graphs, achieving linear runtime required input graphs to be both connected and of bounded node degree. In this thesis, we overcome these limitations by enhancing the graph data structure generated by the GP 2 compiler and exploiting this new structure within the programs. We present four case studies: a program that checks graph’s connectedness, a program that two-colours a graph, a cycle detection program, and a program that computes the shortest weighted distances from a single source to all other nodes in a weighted graph. The first three programs run in linear time on both connected and disconnected input graphs with arbitrary node degrees. The fourth program achieves a time complexity comparable to that of conventional implementations in imperative programming languages. For each program, we provide a formal analysis of its correctness and complexity, supplemented by empirical benchmarking.","abstract_has_math":false,"creators":["Ismaili Alaoui, Ziad"],"institution":"University of York","degree_name":"M.Sc by research","degree_level":"masters","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Plump, Detlef"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-06","date_published":"2025-06","updated_at":"2026-11-18T23:29:52Z","subjects":[],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":null,"outbound_label":null,"outbound_source":null,"record_url":null,"record_label":null,"record_kind":null,"record_source":null,"download_url":"https://etheses.whiterose.ac.uk/id/eprint/36969/1/Ziad__Master_s_Thesis.pdf","download_label":"Download PDF","download_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://etheses.whiterose.ac.uk/cgi/oai2?verb=GetRecord&metadataPrefix=uketd_dc&identifier=oai%3Aetheses.whiterose.ac.uk%3A36969","prefix":"uketd_dc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Plump, Detlef"]},{"key":"dc:creator","label":"Author","values":["Ismaili Alaoui, Ziad"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2025-06"]},{"key":"dc:date.issued","label":"Date","values":["2025-06"]},{"key":"dc:publisher.department","label":"Dc Publisher Department","values":["Computer Science (York)"]},{"key":"dc:publisher.institution","label":"Dc Publisher Institution","values":["University of York"]},{"key":"dc:relation.isreferencedby","label":"Dc Relation Isreferencedby","values":["https://etheses.whiterose.ac.uk/id/eprint/36969/"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"dc:type.qualificationlevel","label":"Dc Type Qualificationlevel","values":["masters"]},{"key":"dc:type.qualificationname","label":"Dc Type Qualificationname","values":["M.Sc by research"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.dcterms_iso639_2","label":"Language (ISO 639-2)","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://etheses.whiterose.ac.uk/id/eprint/36969/1/Ziad__Master_s_Thesis.pdf"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["This thesis presents an improvement in rule-based graph programming which enables the design of graph programs that achieve the time complexity of imperative linear-time algorithms. Achieving such complexity in conventional languages using graph transformation rules is challenging due to the high cost of graph matching. Previous work demonstrated that with rooted rules, certain algorithms can be executed in linear time using the graph programming language GP 2. However, for non-destructive algorithms that preserve the structure of input graphs, achieving linear runtime required input graphs to be both connected and of bounded node degree. In this thesis, we overcome these limitations by enhancing the graph data structure generated by the GP 2 compiler and exploiting this new structure within the programs. We present four case studies: a program that checks graph’s connectedness, a program that two-colours a graph, a cycle detection program, and a program that computes the shortest weighted distances from a single source to all other nodes in a weighted graph. The first three programs run in linear time on both connected and disconnected input graphs with arbitrary node degrees. The fourth program achieves a time complexity comparable to that of conventional implementations in imperative programming languages. For each program, we provide a formal analysis of its correctness and complexity, supplemented by empirical benchmarking."]},{"key":"dc:format","label":"Dc Format","values":["text"]},{"key":"dcterms:accessrights","label":"Dcterms Accessrights","values":["public"]},{"key":"dc:title","label":"Title","values":["Speeding up Graph Programs"]}]}],"canonical_facts":{"dc:contributor.advisor":["Plump, Detlef"],"dc:creator":["Ismaili Alaoui, Ziad"],"dc:date":["2025-06"],"dc:date.issued":["2025-06"],"dc:description.abstract":["This thesis presents an improvement in rule-based graph programming which enables the design of graph programs that achieve the time complexity of imperative linear-time algorithms. Achieving such complexity in conventional languages using graph transformation rules is challenging due to the high cost of graph matching. Previous work demonstrated that with rooted rules, certain algorithms can be executed in linear time using the graph programming language GP 2. However, for non-destructive algorithms that preserve the structure of input graphs, achieving linear runtime required input graphs to be both connected and of bounded node degree. In this thesis, we overcome these limitations by enhancing the graph data structure generated by the GP 2 compiler and exploiting this new structure within the programs. We present four case studies: a program that checks graph’s connectedness, a program that two-colours a graph, a cycle detection program, and a program that computes the shortest weighted distances from a single source to all other nodes in a weighted graph. The first three programs run in linear time on both connected and disconnected input graphs with arbitrary node degrees. The fourth program achieves a time complexity comparable to that of conventional implementations in imperative programming languages. For each program, we provide a formal analysis of its correctness and complexity, supplemented by empirical benchmarking."],"dc:format":["text"],"dc:identifier.uri":["https://etheses.whiterose.ac.uk/id/eprint/36969/1/Ziad__Master_s_Thesis.pdf"],"dc:language.dcterms_iso639_2":["eng"],"dc:publisher.department":["Computer Science (York)"],"dc:publisher.institution":["University of York"],"dc:relation.isreferencedby":["https://etheses.whiterose.ac.uk/id/eprint/36969/"],"dcterms:accessrights":["public"],"dc:title":["Speeding up Graph Programs"],"dc:type":["Thesis"],"dc:type.qualificationlevel":["masters"],"dc:type.qualificationname":["M.Sc by research"]},"updated_at":"2026-11-18T23:29:52Z"}