Skip to content

A high-performance C program that analyzes text files to find the most frequently occurring words using a custom hash table implementation.

License

Notifications You must be signed in to change notification settings

ahmedkhaled1994/mostFrequentWords

Repository files navigation

Most Frequent Words

A C program that finds the most frequently occurring words in a text file.

Project Structure

src/        - Source code files
include/    - Header files  

Features

  • Reads text files and processes words
  • Cleans and normalizes words (removes punctuation, converts to lowercase)
  • Finds the N most frequent words

Building

Using Make (Recommended)

make

Manual Build (Alternative)

gcc -I include -Wall -Wextra -std=c99 -o mostFrequentWords src/mostFrequentWords.c

Usage

char **results = find_frequent_words("input.txt", 5);

Running

./mostFrequentWords

Clean Build Files

make clean

License

MIT License - see LICENSE file for details.

About

A high-performance C program that analyzes text files to find the most frequently occurring words using a custom hash table implementation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published