Find Jobs
Hire Freelancers

Class to manage URL category data structure in iOS(repost)(repost)

$100-120 USD

Dibatalkan
Dibuat lebih dari 12 tahun yang lalu

$100-120 USD

Dibayar ketika dikirim
I need a class to manage URL classification data structures on iOS (you don't need to do the actual classification, just create the data management, the data will come from files/function calls) You can read the full spec in the detailed requirements. ## Deliverables I need a class to manage URL classification data structures on iOS (you don't need to do the actual classification, just create the data management, the data will come from files/function calls) Stage 1: Defining the categories, there will be an enum in the class with all the possible categories (I will change it later to all my categories), here is a sample list (taken from my C program): typedef enum _CategoriesEnum { ceAbortion=1, ceAds, ceAdult, //Not porn, but still not child save ceViolence, ceNude, ceAstrology, ceBanking, ceAlcoholDrugs } CategoriesEnum Stage 2: Loading data from files, the data structure is directories under the main directory, each directory has a file called domains which contains the domains for that category, when I load the file I will specify the master directory and a list of conversion between the directory name and enum. Directory structure sample: Main dir: --ads ----domains (file) --adult ----domains (file) The lookup will be: ads -> ceAds adult -> ceAdult The data in the structure is a domain name, so for example: [login to view URL], [login to view URL], [login to view URL] The data should be stored in a data container that has a fast search capabilities like a tree or map There can be more then one category for a site. Stage 3: Looking up the data, I need a function that I will provide a URL to it, the function will extract the host from the url, for example: <[login to view URL]>, the function will only search [[login to view URL]][1] The way the function will search the data is by doing searches for all possible host name, for example: [[login to view URL]][1] will also be searched for [login to view URL] if the [[login to view URL]][1] was not found. If the category is found, I will get back the enum of the category or categories. Stage 4: Adding a URL, I will be able to add a URL using a call, for example: AddURL("[login to view URL]",ceBanking) I can also specify: AddURL("[login to view URL]",ceAds) and [login to view URL] will have more then one category. Stage 5: When creating the class, I will be able to decide at creation if I want the class to have locking for thread safe, or not. The thread safety only needs to be for adding/querying the data via the API, at the stage of loading the data, there's no need for safety. Stage 6: Provide a test app that will load the data from file (data will be provided by me), and give me a two text boxes, one to query categories, I will enter a url and it will write the category, the second text box will allow me to add a url and a category.
ID Proyek: 3654746

Tentang proyek

Proyek remot
Aktif 13 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan

Tentang klien

Bendera ISRAEL
Israel
4,9
146
Memverifikasi Metode pembayaran
Anggota sejak Apr 16, 2007

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.